From c2d655e0baeb7e90eadb0a9ffe09b2a87c1fe34d Mon Sep 17 00:00:00 2001 From: Akhil Wali Date: Thu, 15 Dec 2022 14:50:37 +1300 Subject: [PATCH] Update README Use function quote for 2nd argument to `add-hook`. --- .github/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/README.md b/.github/README.md index 861196b..94e1e54 100644 --- a/.github/README.md +++ b/.github/README.md @@ -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. @@ -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