Skip to content

Commit

Permalink
doc: Fix setting up hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienCassou authored and AmaiKinono committed Sep 12, 2021
1 parent c39a4d9 commit 0c4d5bf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ Puni lacks some commands that smartparens has. But the advantages are:
languages:

```elisp
(dolist (hook '(prog-mode sgml-mode nxml-mode tex-mode))
(dolist (hook '(prog-mode-hook sgml-mode-hook nxml-mode-hook tex-mode-hook))
(add-hook hook #'puni-mode))
```

Expand All @@ -294,9 +294,7 @@ Here are 2 configuration examples using `use-package`:
;; Use puni-mode only for certain major modes.
(use-package puni
:defer t
:init
(dolist (hook '(prog-mode sgml-mode nxml-mode tex-mode))
(add-hook hook #'puni-mode)))
:hook ((prog-mode sgml-mode nxml-mode tex-mode) . puni-mode))
```

## Commands
Expand Down

0 comments on commit 0c4d5bf

Please sign in to comment.