File: untabify.el

package info (click to toggle)
tar-doc 1.35-2
  • links: PTS
  • area: non-free
  • in suites: forky, sid, trixie
  • size: 1,608 kB
  • sloc: makefile: 113; lisp: 56; sed: 10
file content (13 lines) | stat: -rw-r--r-- 332 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
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)