From: capnwhit@yahoo.com (Bob Whitaker)
Subject: Re: How to set Emacs indentation style in batch mode
Date: 26 Oct 2004 07:41:43 -0700 [thread overview]
Message-ID: <27dcd52b.0410260641.6b86eee4@posting.google.com> (raw)
In-Reply-To: lvsm816da1.fsf@ns5.nestdesign.com
Thanks to both!!! You were both right!!! The script now works great.
For the archives, here is my current implementation (works OK):
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; FILE
;; ====
;; emacs_pretty_print.el
;;
;; USAGE
;; =====
;; Invoke "xemacs" as follows:
;;
;; xemacs -batch MyFile.cpp -load emacs_pretty_print.el
;;
(c-set-style "stroustrup")
(setq-default c-basic-offset 3)
(setq-default indent-tabs-mode nil)
(untabify (point-min) (point-max))
(indent-region (point-min) (point-max) nil)
(save-buffer)
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
prev parent reply other threads:[~2004-10-26 14:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-26 1:28 How to set Emacs indentation style in batch mode Bob Whitaker
2004-10-26 9:26 ` Aidan Kehoe
2004-10-26 14:41 ` Bob Whitaker [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=27dcd52b.0410260641.6b86eee4@posting.google.com \
--to=capnwhit@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).