summaryrefslogtreecommitdiff
path: root/.config/bash/rc.d/emacs.sh
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-03-27 15:24:05 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-03-27 15:24:05 -0400
commit674efbf431f2c1c879c9bfed05f7ed6adce22351 (patch)
treeb873ec80e45fb1bd9a414bb25c4e27d68c8861cf /.config/bash/rc.d/emacs.sh
parentde9c3e08412ae13cc8a2d1e4418d9e9257f67518 (diff)
pre-merge move
Diffstat (limited to '.config/bash/rc.d/emacs.sh')
-rw-r--r--.config/bash/rc.d/emacs.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/.config/bash/rc.d/emacs.sh b/.config/bash/rc.d/emacs.sh
new file mode 100644
index 0000000..f484bbb
--- /dev/null
+++ b/.config/bash/rc.d/emacs.sh
@@ -0,0 +1,8 @@
+case "$TERM" in
+ eterm*)
+ SELECTED_EDITOR='emacsclient'
+ EDITOR=$SELECTED_EDITOR
+ VISUAL=$SELECTED_EDITOR
+ export SELECTED_EDITOR EDITOR VISUAL
+ :;;
+esac