From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Aidan Kehoe Newsgroups: gmane.emacs.help Subject: Re: How to set Emacs indentation style in batch mode Date: Tue, 26 Oct 2004 10:26:30 +0100 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <27dcd52b.0410251728.272540da@posting.google.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1098805290 8352 80.91.229.6 (26 Oct 2004 15:41:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Oct 2004 15:41:30 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 26 17:41:24 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CMTRs-0000Au-00 for ; Tue, 26 Oct 2004 17:41:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMTZZ-0000rH-GV for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Oct 2004 11:49:21 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: comp.emacs.xemacs,comp.emacs,gnu.emacs.help,gnu.emacs Original-Lines: 18 Original-X-Trace: news.uni-berlin.de hwgKYLHzcy3H/+aW6A2kXgc9QpKjp1aFNEj110MLHrfMcYX7+f User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Rational FORTRAN, linux) Cancel-Lock: sha1:OlglUOMgovISwdpEu7/ThZPREHM= Original-Xref: shelby.stanford.edu comp.emacs.xemacs:75843 comp.emacs:86778 gnu.emacs.help:126066 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21444 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21444 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)