unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* setting of local variable in derived mode
@ 2016-03-30 11:53 Chris Wittern
  2016-03-30 12:16 ` Stefan Monnier
  2016-03-30 12:19 ` Stefan Monnier
  0 siblings, 2 replies; 6+ messages in thread
From: Chris Wittern @ 2016-03-30 11:53 UTC (permalink / raw)
  To: help-gnu-emacs

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




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

end of thread, other threads:[~2016-03-30 13:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-30 11:53 setting of local variable in derived mode Chris Wittern
2016-03-30 12:16 ` Stefan Monnier
2016-03-30 12:19 ` Stefan Monnier
2016-03-30 12:35   ` Chris Wittern
2016-03-30 12:46     ` Stefan Monnier
2016-03-30 13:01       ` Chris Wittern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).