[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to set Emacs indentation style in batch mode
From: |
Bob Whitaker |
Subject: |
Re: How to set Emacs indentation style in batch mode |
Date: |
26 Oct 2004 07:41:43 -0700 |
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)
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;