emacs-devel
[Top][All Lists]
Advanced

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

Re: define-minor-mode, auto-mode-alist & change-major-mode-with-file-nam


From: Sebastian Tennant
Subject: Re: define-minor-mode, auto-mode-alist & change-major-mode-with-file-name
Date: Sun, 05 Feb 2012 17:52:44 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Quoth Lennart Borgman <address@hidden>:
> On Sun, Feb 5, 2012 at 14:57, Sebastian Tennant <address@hidden> wrote:
>> (define-minor-mode test-me-mode "Test Me"
>>  :lighter " TM" (message "I have been Tested."))
>>
>> (add-to-list 'auto-mode-alist '("\\.test-me\\'" . test-me-mode))
>
> auto-mode-alist is for major modes, not minor modes.

Ah.

> If you want to turn on a minor mode a way to do it is to use the major
> modes mode hook.

It doesn't say that in elisp.info!  But it does beg the question why am I using
a minor mode?  Thanks.
-- 
Emacs' AlsaPlayer - Music Without Jolts
Lightweight, full-featured and mindful of your idyllic happiness.
http://home.gna.org/eap




reply via email to

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