* getting an 'error: undefined style' on style customization
@ 2006-05-29 16:06 Nick
0 siblings, 0 replies; only message in thread
From: Nick @ 2006-05-29 16:06 UTC (permalink / raw)
HI all,
I can safely M-x c-set-style and choose my style (linux-c-mode) and
emacs will load properly and work just fine. However, when i try to M-x
linux-c-mode after launching emacs before editing a file (or even
selecting it), it gives me the 'error: undefined style' error message.
How can i fix that? My linux-c-mode is as follows.
(defun linux-c-mode()
"C mode with adjusted defaults for use with the Linux Kernel."
(interactive)
(c-mode)
(c-set-style "gnu")
(setq tab-width 8)
(setq indent-tabs-mode nil)
(setq c-basic-offset 8)
(add-hook 'c-mode-hook 'linux-c-mode))
Any help is appreciated.
Nick
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-05-29 16:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-29 16:06 getting an 'error: undefined style' on style customization Nick
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).