paredit: Use the use-package hooks section for hooks
Previously only use-package's config section was used to register hooks. Those are moved to the use-package's hook section.
This commit is contained in:
parent
d39614d8e8
commit
3f8446bc7f
1 changed files with 7 additions and 6 deletions
|
@ -2,12 +2,13 @@
|
||||||
:ensure t
|
:ensure t
|
||||||
:config
|
:config
|
||||||
(autoload 'enable-paredit-mode "paredit" "Turn on pseudo-structural editing of Lisp code." t)
|
(autoload 'enable-paredit-mode "paredit" "Turn on pseudo-structural editing of Lisp code." t)
|
||||||
(add-hook 'emacs-lisp-mode-hook #'enable-paredit-mode)
|
:hook
|
||||||
(add-hook 'eval-expression-minibuffer-setup-hook #'enable-paredit-mode)
|
(emacs-lisp-mode . enable-paredit-mode)
|
||||||
(add-hook 'ielm-mode-hook #'enable-paredit-mode)
|
(eval-expression-minibuffer-setup enable-paredit-mode)
|
||||||
(add-hook 'lisp-mode-hook #'enable-paredit-mode)
|
(ielm-mode . enable-paredit-mode)
|
||||||
(add-hook 'lisp-interaction-mode-hook #'enable-paredit-mode)
|
(lisp-mode . enable-paredit-mode)
|
||||||
(add-hook 'scheme-mode-hook #'enable-paredit-mode))
|
(lisp-interaction-mode . enable-paredit-mode)
|
||||||
|
(scheme-mode . enable-paredit-mode))
|
||||||
|
|
||||||
(use-package highlight-parentheses
|
(use-package highlight-parentheses
|
||||||
:ensure t
|
:ensure t
|
||||||
|
|
Loading…
Reference in a new issue