commit: aa4697a70dec32ad6e7e371899968afc7fe338e6 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Fri Oct 6 07:38:41 2023 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Fri Oct 6 07:38:41 2023 +0000 URL: https://gitweb.gentoo.org/proj/eselect.git/commit/?id=aa4697a7
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 <AT> gentoo.org> ChangeLog | 3 +++ misc/eselect-mode.el | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 13bbc97..c0fe120 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2023-10-06 Ulrich Müller <u...@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))