diff options
author | Martin Baulig <martin@src.gnome.org> | 1999-12-26 14:05:32 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1999-12-26 14:05:32 +0000 |
commit | f1a6e1ead8fde4b03f3fcb9ea1e1635185bc7d10 (patch) | |
tree | 6d9b7ef9252e719fbb49368a10542eb7af09089d /misc | |
parent | d7f088bef0e858550e5ae6890082e962fc5697ad (diff) | |
download | libgtop-f1a6e1ead8fde4b03f3fcb9ea1e1635185bc7d10.tar.gz |
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
Diffstat (limited to 'misc')
-rw-r--r-- | misc/README.indent | 8 | ||||
-rw-r--r-- | misc/format.el | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/misc/README.indent b/misc/README.indent new file mode 100644 index 00000000..012bf8a1 --- /dev/null +++ b/misc/README.indent @@ -0,0 +1,8 @@ +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 + diff --git a/misc/format.el b/misc/format.el new file mode 100644 index 00000000..c0901142 --- /dev/null +++ b/misc/format.el @@ -0,0 +1,5 @@ +(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) |