|
From: | Kai Großjohann |
Subject: | Re: Style in elisp: how to show a flag value in the modeline? |
Date: | Thu, 20 Feb 2003 18:26:14 +0100 |
User-agent: | Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 |
francois.fleuret@noos.fr (François Fleuret) writes: > I added > > (setq minor-mode-alist > (assq-delete-all 'mp3play-auto-mode minor-mode-alist)) > > in a function called by kill-buffer-hook, and > > (setq minor-mode-alist > (cons '(mp3play-auto-mode " auto-play") minor-mode-alist)) > > in the initialization. Also, (force-mode-line-update) when the flag is > flipped. Is that the right way to go ? Using minor-mode-alist wihout > having defined a minor-mode ? I suggest to just frob the variable mp3play-auto-mode and leave the entry in at all times. That's how it's intended to be used. -- A preposition is not a good thing to end a sentence with.
[Prev in Thread] | Current Thread | [Next in Thread] |