summaryrefslogtreecommitdiff
path: root/.config/selected_editor
diff options
context:
space:
mode:
Diffstat (limited to '.config/selected_editor')
-rw-r--r--.config/selected_editor4
1 files changed, 3 insertions, 1 deletions
diff --git a/.config/selected_editor b/.config/selected_editor
index 8330cfe..eec2325 100644
--- a/.config/selected_editor
+++ b/.config/selected_editor
@@ -1,4 +1,6 @@
-# Generated by /usr/bin/select-editor
SELECTED_EDITOR="emacsclient -a '' -c"
+if [[ -n $SSH_CONNECTION ]]; then
+ SELECTED_EDITOR+=" -nw"
+fi
ALTERNATE_EDITOR='/usr/bin/vim'
VISUAL="$SELECTED_EDITOR"