diff options
author | John Turner <jturner.usa@gmail.com> | 2025-08-08 17:29:33 -0400 |
---|---|---|
committer | John Turner <jturner.usa@gmail.com> | 2025-08-08 17:29:33 -0400 |
commit | baba6d41d4565c22667f5001abf3099307e90bb4 (patch) | |
tree | 9d4fcfd25058d9473f7f266194d14e721c569fad /format.el | |
parent | 3b509caa37eb467f94923dec8eaad50018e00cbc (diff) | |
download | selinux-policy-baba6d41d4565c22667f5001abf3099307e90bb4.tar.gz |
add format.eldebian/latest
Diffstat (limited to 'format.el')
-rwxr-xr-x | format.el | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/format.el b/format.el new file mode 100755 index 0000000..2b37edf --- /dev/null +++ b/format.el @@ -0,0 +1,11 @@ +#!/usr/bin/emacs --script + +(add-to-list 'load-path (file-name-concat user-emacs-directory "lisp" "cil-mode")) + +(require 'cil-mode) + +(with-temp-buffer + (cil-mode) + (insert-file-contents-literally (nth 0 argv)) + (indent-region (point-min) (point-max)) + (write-region (point-min) (point-max) "/dev/stdout")) |