all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* a mode-specific hack-local-variables-hook ?
@ 2015-06-17 19:54 Sam Halliday
  2015-06-17 20:19 ` Sam Halliday
  0 siblings, 1 reply; 4+ messages in thread
From: Sam Halliday @ 2015-06-17 19:54 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all,

I recently added this to my init.el

  (add-hook 'hack-local-variables-hook 'whitespace-mode)

so that whitespace-mode would see my local variables before applying its rules.

I did this in my major mode hook, thinking that it would just add it to the current mode's hooks, but it seems to be a global hook. Other than putting in an "(if (eq major-mode 'scala-mode) ... )" type test in a lambda?

Best regards,
Sam


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-06-17 21:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-17 19:54 a mode-specific hack-local-variables-hook ? Sam Halliday
2015-06-17 20:19 ` Sam Halliday
2015-06-17 21:06   ` John Mastro
     [not found]   ` <mailman.5204.1434575192.904.help-gnu-emacs@gnu.org>
2015-06-17 21:19     ` Sam Halliday

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.