diff options
Diffstat (limited to '.bash.d')
-rw-r--r-- | .bash.d/emacs.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.bash.d/emacs.sh b/.bash.d/emacs.sh new file mode 100644 index 0000000..b3c5c53 --- /dev/null +++ b/.bash.d/emacs.sh @@ -0,0 +1,16 @@ +case "$SELECTED_EDITOR" in + emacsclient*) + if [ -n "$DISPLAY" ]; then + export VISUAL="$SELECTED_EDITOR -c" + fi + case "$TERM" in + eterm*) + SELECTED_EDITOR="$SELECTED_EDITOR -n" + EDITOR=$SELECTED_EDITOR + VISUAL=$SELECTED_EDITOR + export SELECTED_EDITOR EDITOR VISUAL + :;; + esac + :;; +esac + |