unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / 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 --
2002-11-15 17:17 How to over-ride c-set-style ... indentation Kai Peter Ford
     [not found] <mailman.1037381050.320.help-gnu-emacs@gnu.org>
2002-11-16 18:50 ` Kai Großjohann

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).