aboutsummaryrefslogtreecommitdiff
path: root/doc/untabify.el
diff options
context:
space:
mode:
Diffstat (limited to 'doc/untabify.el')
-rw-r--r--doc/untabify.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/untabify.el b/doc/untabify.el
new file mode 100644
index 0000000..77dd5c0
--- /dev/null
+++ b/doc/untabify.el
@@ -0,0 +1,13 @@
+;;;; Untabify the sources.
+;;;; Usage: emacs -batch -l untabify.el [file ...]
+
+(defun global-untabify (buflist)
+ (mapcar
+ (lambda (bufname)
+ (set-buffer (find-file bufname))
+ (untabify (point-min) (point-max))
+ (save-buffer)
+ (kill-buffer (current-buffer)))
+ buflist))
+
+(global-untabify command-line-args-left)

Return to:

Send suggestions and report system problems to the System administrator.