aboutsummaryrefslogtreecommitdiff
path: root/.environment
diff options
context:
space:
mode:
Diffstat (limited to '.environment')
-rw-r--r--.environment4
1 files changed, 3 insertions, 1 deletions
diff --git a/.environment b/.environment
index dd61ab8..b0386ce 100644
--- a/.environment
+++ b/.environment
@@ -3,7 +3,9 @@
# Keep it simple and POSIX
# Select an editor.
-if [ -x "`which emacsclient`" ]; then
+if [ -n "$INSIDE_EMACS" ]; then
+ export EDITOR=vim
+elif [ -x "`which emacsclient`" ]; then
export EDITOR="emacsclient -tc --alternate-editor=vi"
else
export EDITOR=vi
nihil fit ex nihilo