Better integrates CLI and Emacsclient
This commit is contained in:
parent
6b3d011491
commit
8fff1ba890
6 changed files with 88 additions and 5 deletions
7
bins/bin/create-shell-pager.sh
Executable file
7
bins/bin/create-shell-pager.sh
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
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/open-in-pager \"$file\")"
|
||||
Loading…
Add table
Add a link
Reference in a new issue