# HG changeset patch # User Henry S. Thompson # Date 1702760893 0 # Node ID 597d985bf4486b6c5e1291566d43705e54c4435b # Parent 1ff8b5045b1f1b55172a0871e5e7dcb16fc9d6ee use add-hook diff -r 1ff8b5045b1f -r 597d985bf448 misc.el --- 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)