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

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

setting of local variable in derived mode


From: Chris Wittern
Subject: setting of local variable in derived mode
Date: Wed, 30 Mar 2016 11:53:53 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Hi Emacs users,

I am defining a derived mode as described in the elisp manual under "Example
Major Modes". I am doing the following:


(define-derived-mode mandoku-view-mode org-mode "mandoku-view"
  "a mode to view mandoku files
  \\{mandoku-view-mode-map}"
  (setq case-fold-search nil)
  (set (make-local-variable 'tab-with) 30)
)


I expect this to set the tab-width in all buffers with this mode to the
value 30.  However, the value stays at 8 as before.  Could some kind soul
please tell me what I am doing wrong?

All the best,

Chris




reply via email to

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