[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to set Emacs indentation style in batch mode
From: |
Aidan Kehoe |
Subject: |
Re: How to set Emacs indentation style in batch mode |
Date: |
Tue, 26 Oct 2004 10:26:30 +0100 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Rational FORTRAN, linux) |
Ar an cúigiú lá is fiche de mí Deireadh Fómhair, scríobh Bob Whitaker:
> I have been successful by using XEmacs in batch mode but the only problem
> is that it defaults to "gnu" indentation style, whereas I would like
> "stroustrup" indentation style. Does anyone know how to do this?
Yes. Try '(c-set-style "stroustrup")' instead of '(setq-default
c-default-style "stroustrup")'; the former modifies the environment for the
current file, the latter changes a global default, which isn't much use to
you because it doesn't apply to the current file. (The current C indentation
style has already been initialised.)
--
Like the early Christians, Marx expected the millennium very soon; like
their successors, his have been disappointed--once more, the world has shown
itself recalcitrant to a tidy formula embodying the hopes of some section of
mankind. (Russell)