Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
Use function quote for 2nd argument to `add-hook`.
  • Loading branch information
darth10 authored Dec 15, 2022
1 parent 69a7415 commit c2d655e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ whether God mode is active as follows:
:foreground "#404148"
:background "#efefef"))))
(add-hook 'post-command-hook 'my-god-mode-update-mode-line)
(add-hook 'post-command-hook #'my-god-mode-update-mode-line)
```

Note that using `post-command-hook` here should not be an issue for performance.
Expand Down Expand Up @@ -330,7 +330,7 @@ customizations that enable them to be used together smoothly.
```emacs-lisp
(with-eval-after-load 'god-mode
(evil-make-intercept-map god-local-mode-map 'normal)
(add-hook 'god-local-mode-hook 'evil-normalize-keymaps))
(add-hook 'god-local-mode-hook #'evil-normalize-keymaps))
```

* Another option to use God mode with Evil is to use the
Expand Down

0 comments on commit c2d655e

Please sign in to comment.