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

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

Re: Temporarily suppress a hook?


From: Bob Proulx
Subject: Re: Temporarily suppress a hook?
Date: Sun, 8 Jul 2018 22:43:41 -0600
User-agent: Mutt/1.5.23 (2014-03-12)

Skip Montanaro wrote:
> Is it possible to suppress the before-save-hook on a
> per-file basis?

I know this isn't quite what you are wanting but sometimes a crazy
squirrel cage argument which is outside the normal box can still be
useful...

Could you suppress you entire .emacs so as to avoid all of your
customization?

  emacs -q that-special-flie

Or you would pick another user on your system that has a compatible
file to you but without the hooks.  Perhaps root?  Perhaps another
user?  Use their .emacs file for that one file.

  emacs -u root that-special-flie

I know that will be less desirable for many reasons.  You won't get
your normal configuration for other things.  But if you can take a
default configuration for just that moment then it would suppress your
hooks as they would not be added then.

Bob



reply via email to

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