###################################
.emacs
---------------------------------
;; Coding Style for Enlightenment Foundations Libraries
(c-add-style
"e17"
'("gnu"
(indent-tabs-mode . t)
(tab-width . 8)
(c-offsets-alist
.
((defun-block-intro . 3)
(statement-block-intro . 3)
(case-label . 1)
(statement-case-intro . 3)
(inclass . 3)
))))
#######################################
Arquivo main.c
emacs -batch main.c --eval '(lambda() (c-set-style "e17") (indent-region (point-min) (point-max) nil))' -f save-buffer
Todos os arquivo do diretório
for i in *; do emacs -batch $i --eval '(lambda() (c-set-style "e17") (indent-region (point-min) (point-max) nil))' -f save-buffer; done;
No comments:
Post a Comment