Mercurial > hg > xemacs
diff misc.el @ 42:597d985bf448
use add-hook
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Sat, 16 Dec 2023 21:08:13 +0000 |
parents | 0e5b39d2f8bb |
children |
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)