all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to over-ride c-set-style ... indentation
@ 2002-11-15 17:17 Kai Peter Ford
  0 siblings, 0 replies; 2+ messages in thread
From: Kai Peter Ford @ 2002-11-15 17:17 UTC (permalink / raw)


I need to over-ride the default 3-space indentation in the "ellemtel" style 
with 4 spaces.  I currently have the following in my .emacs:

...
(add-hook 'java-mode-hook
           '(lambda ()
              (c-set-style "ellemtel")))
. . .
(custom-set-variables
  ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
  '(c-basic-offset 4)
  '(c-indent-level 4)
. . .

but this has no effect.  Is there any way to do this?

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

* Re: How to over-ride c-set-style ... indentation
       [not found] <mailman.1037381050.320.help-gnu-emacs@gnu.org>
@ 2002-11-16 18:50 ` Kai Großjohann
  0 siblings, 0 replies; 2+ messages in thread
From: Kai Großjohann @ 2002-11-16 18:50 UTC (permalink / raw)


Kai Peter Ford <kaiford@ix.netcom.com> writes:

> (add-hook 'java-mode-hook
>            '(lambda ()
>               (c-set-style "ellemtel")))

I guess you can just add (setq c-basic-offset 4) after the
c-set-style statement.

kai
-- 
~/.signature is: umop ap!sdn    (Frank Nobis)

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

end of thread, other threads:[~2002-11-16 18:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1037381050.320.help-gnu-emacs@gnu.org>
2002-11-16 18:50 ` How to over-ride c-set-style ... indentation Kai Großjohann
2002-11-15 17:17 Kai Peter Ford

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.