From: Niels Geuts <nielsgeurtslists@gmail.com>
To: Help-gnu-emacs@gnu.org
Subject: Re: Preventing toggling off minor modes in nxhtml mumamo chunks
Date: Fri, 15 Aug 2008 22:01:09 -0700 (PDT) [thread overview]
Message-ID: <19008791.post@talk.nabble.com> (raw)
In-Reply-To: <48A4C9D1.5060803@gmail.com>
Niels Geuts wrote:
>> 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?
<SNIP>
Lennart Borgman wrote:
> Look in mumamo.el. There is a comment for "Minor Mode Authors".
mumamo.el:
;;
;; * For functions entered to local hooks use this
;;
;; (put 'FUNSYM 'permanent-local-hook t)
;; (add-hook 'HOOKSYM 'FUNSYM nil t)
;;
;; where HOOKSYM is the hook and FUNSYM is the function.
This did not do the job:
(put 'linum-mode 'permanent-local-hook t)
(add-hook 'nxhtml-mode-hook 'linum-mode nil t)
But this did:
(add-hook 'after-change-major-mode-hook 'linum-mode 'auto-fill-function)
However, this solution did not work for longlines-mode, which I use as well.
I now use the following less satisfying solution:
(add-hook 'nxhtml-mode-hook 'longlines-mode)
(add-hook 'after-change-major-mode-hook 'longlines-mode)
I don't understand the difference in behaviour these two minor-modes
exhibit, but with no doubt this will be due to my limited understanding of
Emacs. Any comments would be welcomed.
Niels
--
View this message in context: http://www.nabble.com/Preventing-toggling-off-minor-modes-in-nxhtml-mumamo-chunks-tp18977384p19008791.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
next prev parent reply other threads:[~2008-08-16 5:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-14 8:06 Preventing toggling off minor modes in nxhtml mumamo chunks Niels Geuts
2008-08-15 0:12 ` Lennart Borgman (gmail)
2008-08-16 5:01 ` Niels Geuts [this message]
2008-08-16 5:05 ` Niels Geuts
2009-03-10 2:32 ` Head
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19008791.post@talk.nabble.com \
--to=nielsgeurtslists@gmail.com \
--cc=Help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.