[Top][All Lists]

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

globalized minor modes - priority over mode hook?

From: David Reitter
Subject: globalized minor modes - priority over mode hook?
Date: Sun, 25 Apr 2010 19:42:33 -0400

`run-mode-hooks' runs the mode hooks first, then after-change-major-mode-hooks.

When a globalized major mode is enabled, then it will install itself in 
`after-change-major-mode-hooks' and override the more specific major mode 
hooks, which is not normally what one wants.

For instance, if I want global-visual-line-mode on, but turn off word-wrap in 
my `latex-mode-hook' in favor for auto-fill, I don't get the expected result.  
I don't know what happens when local variables are set when a file is loaded - 
these are specific for the file and should probably override the less-specific 
global minor mode.

Could globalized minor modes not be enabled earlier?

reply via email to

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