Skip to main content
We don't need a tag for every variable value in emacs.
Link
Charles
  • 51.5k
  • 13
  • 107
  • 146
Source Link
RNA
  • 154.9k
  • 17
  • 56
  • 75

how to change buffer-local variable for a major mode in Emacs?

Generally, how can I customize the value of a buffer-local variable in Emacs? For example, the variable w3m-lnum-mode is buffer-local, if I set (setq w3m-lnum-mode t) in .emacs, its value in a w3m mode buffer is still nil. How could I set it to t in w3m major mode?