summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorMartin Baulig <martin@src.gnome.org>1999-12-26 14:05:32 +0000
committerMartin Baulig <martin@src.gnome.org>1999-12-26 14:05:32 +0000
commitf1a6e1ead8fde4b03f3fcb9ea1e1635185bc7d10 (patch)
tree6d9b7ef9252e719fbb49368a10542eb7af09089d /misc
parentd7f088bef0e858550e5ae6890082e962fc5697ad (diff)
downloadlibgtop-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.indent8
-rw-r--r--misc/format.el5
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)