[Top][All Lists]

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

Re: Running a major-mode without invoking its hooks

From: Lennart Borgman
Subject: Re: Running a major-mode without invoking its hooks
Date: Tue, 22 Jul 2014 16:51:09 +0200

On Tue, Jul 22, 2014 at 4:20 PM, Bozhidar Batsov <address@hidden> wrote:
Hi guys,

I was wondering what’s the preferred approach to run a major mode without triggering any if its hooks. I looked at the Elisp manual, but didn’t find anything on the subject. Google searches yield nothing useful as well. (here’s an example that lead to my question - imagine you’re enabling some major mode in a temp buffer just to get proper font-locking for a string you inserted in the temp buffer, but you wouldn’t want to enable whitespace-mode as well, which might add font-locking of it’s own. Obviously you can disable whitespace-mode directly, but there has to be some more generic solution)

Please look at the code in nXhtml for multiple major modes. 

reply via email to

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