Files
libgtop/misc/format.el
Martin Baulig f1a6e1ead8 The indentation in LibGTop was done with the following command:
find . -name \*.[ch] | xargs -i emacs -batch {} \
		-l /gnome/compile/libgtop/misc/format.el -f save-buffer

December 26, 1999
Martin
1999-12-26 14:05:32 +00:00

6 lines
247 B
EmacsLisp

(setq c-basic-offset 4)
(if (not (word-search-forward "Mode: C" nil t))
(insert-string "/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */\n\n"))
(mark-whole-buffer)
(indent-region (region-beginning) (region-end) nil)