changeset 42:597d985bf448

use add-hook
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Sat, 16 Dec 2023 21:08:13 +0000
parents 1ff8b5045b1f
children eee08de75336
files misc.el
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/misc.el	Sat Dec 16 21:07:30 2023 +0000
+++ b/misc.el	Sat Dec 16 21:08:13 2023 +0000
@@ -139,12 +139,12 @@
   (move-to-column left-margin)
   (set-fill-prefix))
 
-(setq text-mode-hook `(lambda nil (progn ,@ (mapcar (function list)
-						    text-mode-hook))
-			(turn-on-auto-fill)
-			(abbrev-mode 1)
-			(local-set-key "\C-cl" 'set-left-margin)
-			(local-set-key "\C-cs" 'submerge-region)))
+(add-hook 'text-mode-hook
+	  (lambda nil
+	    (turn-on-auto-fill)
+	    (abbrev-mode 1)
+	    (local-set-key "\C-cl" 'set-left-margin)
+	    (local-set-key "\C-cs" 'submerge-region)) t)
 
 (global-set-key "\C-cp" 'pop-left-margin)