diff options
author | Ulrich Müller <ulm@gentoo.org> | 2023-10-06 09:38:41 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2023-10-06 09:38:41 +0200 |
commit | aa4697a70dec32ad6e7e371899968afc7fe338e6 (patch) | |
tree | d886a465300d224d9c43b1b2ca2a3160b9c4af9d | |
parent | eselect-mode: Use named function in hook variable (diff) | |
download | eselect-aa4697a70dec32ad6e7e371899968afc7fe338e6.tar.gz eselect-aa4697a70dec32ad6e7e371899968afc7fe338e6.tar.bz2 eselect-aa4697a70dec32ad6e7e371899968afc7fe338e6.zip |
eselect-mode: Use #' for quoting of function names
* misc/eselect-mode.el (eselect-mode, eselect-mode-hook):
Sharp-quote the function names.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | misc/eselect-mode.el | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,8 @@ 2023-10-06 Ulrich Müller <ulm@gentoo.org> + * misc/eselect-mode.el (eselect-mode, eselect-mode-hook): + Sharp-quote the function names. + * misc/eselect-mode.el (eselect-mode-add-font-lock): New function. (eselect-mode-hook): Add it, instead of an anonymous function. diff --git a/misc/eselect-mode.el b/misc/eselect-mode.el index 06843df..d6fc68e 100644 --- a/misc/eselect-mode.el +++ b/misc/eselect-mode.el @@ -143,7 +143,7 @@ ;;;###autoload (define-derived-mode eselect-mode sh-mode "Eselect" "Major mode for .eselect files." - (add-hook 'write-contents-functions 'eselect-mode-before-save t t) + (add-hook 'write-contents-functions #'eselect-mode-before-save t t) (sh-set-shell "bash") (setq tab-width 4) (setq indent-tabs-mode t)) @@ -152,7 +152,7 @@ "Add `eselect-mode' font-lock keywords for the current buffer." (font-lock-add-keywords nil eselect-mode-font-lock-keywords)) -(add-hook 'eselect-mode-hook 'eselect-mode-add-font-lock) +(add-hook 'eselect-mode-hook #'eselect-mode-add-font-lock) ;;;###autoload (add-to-list 'auto-mode-alist '("\\.eselect\\'" . eselect-mode)) |