aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2023-10-06 09:38:41 +0200
committerUlrich Müller <ulm@gentoo.org>2023-10-06 09:38:41 +0200
commitaa4697a70dec32ad6e7e371899968afc7fe338e6 (patch)
treed886a465300d224d9c43b1b2ca2a3160b9c4af9d
parenteselect-mode: Use named function in hook variable (diff)
downloadeselect-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--ChangeLog3
-rw-r--r--misc/eselect-mode.el4
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 <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))