tvl-depot/emacs/index.sh

25 lines
360 B
Bash
Raw Normal View History

2017-06-13 17:33:16 +02:00
#!/usr/bin/env zsh
if [ -n "$INSIDE_EMACS" ]; then
export PAGER="create-shell-pager.sh"
else
export PAGER="less"
fi
if [ -n "$INSIDE_EMACS" ]; then
export EDITOR="emacsclient"
else
export EDITOR=$(which vim)
fi
man () {
if [ -n "$INSIDE_EMACS" ]; then
emacsclient -e "(man \"$1\")"
else
command man "$1"
fi
}