emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: turn-on-*-mode


From: Richard Stallman
Subject: Re: turn-on-*-mode
Date: Tue, 16 May 2006 23:45:54 -0400

    Or maybe we should have something like

    (defun add-hook-turn-on (hook mode)
      (add-hook hook `(lambda nil (,mode 1))))

    So that one can write
    (add-hook-turn-on 'text-mode-hook 'auto-fill-mode)

This would be an improvement, if just using the minor mode
function is not acceptable (see the following message).

But even better would be a feature that makes it easy to use Custom to
specify minor modes to enable in any given major mode.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]