summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-05-11 09:24:43 -0400
committerAmin Bandali <bandali@gnu.org>2019-05-11 09:24:43 -0400
commit2446aab5a76e00157c62e13ec06b09370df3519a (patch)
treea24203cc6682f2ce39bd2c2d1ea326d9f37ef607
parentc036d6d7d172cbcbeaabc8eac19f9b44fd612d7c (diff)
downloadconfigs-2446aab5a76e00157c62e13ec06b09370df3519a.tar.gz
configs-2446aab5a76e00157c62e13ec06b09370df3519a.tar.xz
configs-2446aab5a76e00157c62e13ec06b09370df3519a.zip
tridactyl and shell: use emacs as default editor
-rw-r--r--.config/tridactyl/tridactylrc2
-rwxr-xr-x.local/bin/emcl2
-rw-r--r--.profile3
3 files changed, 6 insertions, 1 deletions
diff --git a/.config/tridactyl/tridactylrc b/.config/tridactyl/tridactylrc
index 1fc49fc..49bcde9 100644
--- a/.config/tridactyl/tridactylrc
+++ b/.config/tridactyl/tridactylrc
@@ -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
index 0000000..b0f2de2
--- /dev/null
+++ b/.local/bin/emcl
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec emacsclient --alternate-editor="" -c "$@"
diff --git a/.profile b/.profile
index 3ceec12..7d55dfa 100644
--- 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"