From: Amin Bandali Date: Sat, 11 May 2019 13:24:43 +0000 (-0400) Subject: tridactyl and shell: use emacs as default editor X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/2446aab5a76e00157c62e13ec06b09370df3519a?ds=inline tridactyl and shell: use emacs as default editor --- 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"