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: Lennart Borgman
Subject: Re: define-minor-mode, auto-mode-alist & change-major-mode-with-file-name
Date: Sun, 5 Feb 2012 15:33:58 +0100

On Sun, Feb 5, 2012 at 14:57, Sebastian Tennant <address@hidden> wrote:
> Hi list,
>
> Test sequence #1
> ================
> (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.

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



reply via email to

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