emacs-devel
[Top][All Lists]
Advanced

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

Re: Running a major-mode without invoking its hooks


From: Bozhidar Batsov
Subject: Re: Running a major-mode without invoking its hooks
Date: Wed, 23 Jul 2014 12:54:43 +0300

On July 23, 2014 at 7:25:39 AM, Dmitry (address@hidden) wrote:
Hi Bozhidar, 

Bozhidar Batsov <address@hidden> writes: 
> I was wondering what’s the preferred approach to run a major mode 
> without triggering any if its hooks. 

Try binding `delay-mode-hooks' to t around the call. 

And maybe `delayed-mode-hooks' to nil, also, so that they aren't 
triggered later. 

Exactly what I needed - works like a charm. Thanks, Dmitry!



reply via email to

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