I am rewriting my Emacs config file to fully use use-package
and organize code. Currently, I have
(use-package magit
:custom
(magit-display-buffer-function #'magit-display-buffer-same-window-except-diff-v1))
;; Flyspell
(add-hook 'git-commit-setup-hook 'git-commit-turn-on-flyspell)
It works but things are splited and they could be together. When I am writing commit messages, flyspell is activated and I can easily see grammar mistakes.
I tried to bring everything together in one s-expression with:
;; Magit configuration
(use-package magit
:custom
(magit-display-buffer-function #'magit-display-buffer-same-window-except-diff-v1)
:hook ((git-commit-setup-hook . git-commit-turn-on-flyspell)))
Unfortunately, it does not work. How can I fix this?
Thanks.
use-package-hook-name-suffix
tonil
for a very simple reason: that way you can still put the cursor on top of any symbol that corresponds to a hook and inspect it withC-h o
.