Better integrates CLI and Emacsclient

This commit is contained in:
William Carroll 2017-06-13 11:33:16 -04:00
parent 6b3d011491
commit 8fff1ba890
6 changed files with 88 additions and 5 deletions

7
bins/bin/create-shell-pager.sh Executable file
View 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\")"

3
bins/setup_bins.sh Normal file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env zsh
ln -s $HOME/pc_settings/bins/bin/* ~/bin