all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Modify indention for C/C++
@ 2014-06-11 13:24 Florian Lindner
  2014-06-11 13:31 ` Florian Lindner
  2014-06-11 13:42 ` Teemu Likonen
  0 siblings, 2 replies; 6+ messages in thread
From: Florian Lindner @ 2014-06-11 13:24 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

what is the canonical way to modify indention for certain keywords? I've 
found numerous ways in the internets. I want to change the linux style 
so, that is does not do indention for namespaces.

(c-add-style "linux"
	     '(
	       (c-basic-offset . 2)
	       (c-offset-alist . (
				  (namespace-open . 0)
				  (namespace-close . 0)
				  (innamespace . 0)
				  ))
	       ))

(setq c-default-style "linux")

I tried that, and it seems to correctly c-style-alist but has no effect. 
How can I change/modify an indention style?

Thanks,
Florian



^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <mailman.3406.1402493094.1147.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2014-06-12  6:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-11 13:24 Modify indention for C/C++ Florian Lindner
2014-06-11 13:31 ` Florian Lindner
2014-06-12  6:59   ` Kevin Rodgers
2014-06-11 13:42 ` Teemu Likonen
2014-06-11 14:23   ` Florian Lindner
     [not found] <mailman.3406.1402493094.1147.help-gnu-emacs@gnu.org>
2014-06-11 15:07 ` Emanuel Berg

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.