help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Preventing toggling off minor modes in nxhtml mumamo chunks


From: Lennart Borgman (gmail)
Subject: Re: Preventing toggling off minor modes in nxhtml mumamo chunks
Date: Fri, 15 Aug 2008 02:12:01 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

Niels Geuts wrote:
Hello group,

I want to use several minor modes in several nxhtml mumamo chunks, but the
minor modes are toggled off in those chunks. What can I do to prevent that?
For instance:

I want to use linum-mode in nxhtml mumamo mode. I added the following line
to my .emacs:

(add-hook 'nxhtml-mode-hook 'linum-mode)

This adds line numbers to xhtml code, but when I move the cursor to a
PHP-chunk, the line numbers disappear and the following message is
displayed:

"Toggling linum-mode off; better pass an explicit argument."

What can I do to prevent this toggling off?


Look in mumamo.el. There is a comment for "Minor Mode Authors".




reply via email to

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