all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Temporarily suppress a hook?
@ 2018-07-09  0:02 Skip Montanaro
  2018-07-09  0:43 ` Drew Adams
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Skip Montanaro @ 2018-07-09  0:02 UTC (permalink / raw)
  To: Help GNU Emacs

I have before-save-hook defined in ~/.emacs

(add-hook 'before-save-hook 'delete-trailing-whitespace)

This is useful almost all the time. I just discovered a case where
it's not so helpful (a file full of regular expressions to feed into
"grep -E -f ..."

I can think of various ways to tweak the regular expressions to not
require trailing whitespace, but let's assume for a moment that's not
possible. Is it possible to suppress the before-save-hook on a
per-file basis?

Thx,

Skip



^ permalink raw reply	[flat|nested] 12+ messages in thread
[parent not found: <mailman.3286.1531094567.1292.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2018-07-12 17:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-09  0:02 Temporarily suppress a hook? Skip Montanaro
2018-07-09  0:43 ` Drew Adams
2018-07-09  1:39   ` Skip Montanaro
2018-07-09 12:07     ` João Távora
2018-07-09  4:43 ` Bob Proulx
2018-07-09  5:21 ` Óscar Fuentes
2018-07-09  6:00   ` tomas
2018-07-09  7:53     ` Óscar Fuentes
2018-07-09 11:01     ` Skip Montanaro
2018-07-09 17:33       ` Marcin Borkowski
2018-07-09 14:41 ` Stefan Monnier
     [not found] <mailman.3286.1531094567.1292.help-gnu-emacs@gnu.org>
2018-07-12 17:43 ` Emanuel Berg

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.