diff options
author | William Carroll <wpcarro@gmail.com> | 2017-06-18T17·23-0400 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2017-06-18T17·23-0400 |
commit | 1ccaee9fa9e26898c62d9f9ac0eb208855a86330 (patch) | |
tree | f297d27079b5da8396c35a2877e2100e185e0de4 /bins | |
parent | 6d13881ec2b28b899a9aea45b2ffd520235cf2ed (diff) |
Adds finer-grain control over Linum Mode
Diffstat (limited to 'bins')
-rwxr-xr-x | bins/bin/edit-file-in-emacs.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bins/bin/edit-file-in-emacs.sh b/bins/bin/edit-file-in-emacs.sh index 0661da7335fe..650ccac12011 100755 --- a/bins/bin/edit-file-in-emacs.sh +++ b/bins/bin/edit-file-in-emacs.sh @@ -1,7 +1,7 @@ #/usr/bin/env zsh -file=$(mktemp -t "$USER-"XXXXXXXX.emacs-pager) || exit 127 -trap 'rm -f "$file"' EXIT -trap 'exit 255' HUP INT QUIT TERM +file=$(mktemp -t "$USER-XXXXXXXX.emacs-pager") || exit 127 +trap "rm -f $file" EXIT +trap "exit 255" HUP INT QUIT TERM cat "$@" >"$file" emacsclient -e "(wc/edit-file-in-emacs \"$file\")" |