all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.