|
From: | Stefan Monnier |
Subject: | Re: dir-locals.el take precedence over user's mode-hook changes |
Date: | Wed, 31 Dec 2008 12:27:38 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
> Unfortunately this does not work, it would turn the mode off if it's > already turned on. > If you have in your .emacs: > (add-hook 'emacs-lisp-mode-hook 'my-emacs-lisp-mode-hook) > (defun my-emacs-lisp-mode-hook () (auto-fill-mode 1)) > And add to an elisp file: > ;; Local Variables: > ;; mode: auto-fill > ;; End: > auto-fill-mode will not be turned on for that elisp file. Yes, that's a more general problem. I'd be inclined to change it so that the minor mode is unconditionally turned ON rather than toggled. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |