tridactyl and shell: use emacs as default editor
authorAmin Bandali <bandali@gnu.org>
Sat, 11 May 2019 13:24:43 +0000 (09:24 -0400)
committerAmin Bandali <bandali@gnu.org>
Sat, 11 May 2019 13:24:43 +0000 (09:24 -0400)
.config/tridactyl/tridactylrc
.local/bin/emcl [new file with mode: 0755]
.profile

index 1fc49fc..49bcde9 100644 (file)
@@ -1,3 +1,5 @@
+set editorcmd emcl
+
 bind j scrollline 2
 bind k scrollline -2
 bind n scrollline 2
diff --git a/.local/bin/emcl b/.local/bin/emcl
new file mode 100755 (executable)
index 0000000..b0f2de2
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec emacsclient --alternate-editor="" -c "$@"
index 3ceec12..7d55dfa 100644 (file)
--- a/.profile
+++ b/.profile
@@ -1,6 +1,7 @@
 export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc
 
-export VISUAL="emacsclient -c"
+export EDITOR="emacsclient -nw"
+export VISUAL="emcl"
 
 export PATH="$HOME/.local/bin:$HOME/.cabal/bin:$HOME/.cargo/bin:$HOME/.elan/bin${PATH:+:}$PATH"