diff options
author | Amin Bandali <bandali@gnu.org> | 2019-05-11 09:24:43 -0400 |
---|---|---|
committer | Amin Bandali <bandali@gnu.org> | 2019-05-11 09:24:43 -0400 |
commit | 2446aab5a76e00157c62e13ec06b09370df3519a (patch) | |
tree | a24203cc6682f2ce39bd2c2d1ea326d9f37ef607 | |
parent | c036d6d7d172cbcbeaabc8eac19f9b44fd612d7c (diff) | |
download | configs-2446aab5a76e00157c62e13ec06b09370df3519a.tar.gz configs-2446aab5a76e00157c62e13ec06b09370df3519a.tar.xz configs-2446aab5a76e00157c62e13ec06b09370df3519a.zip |
tridactyl and shell: use emacs as default editor
-rw-r--r-- | .config/tridactyl/tridactylrc | 2 | ||||
-rwxr-xr-x | .local/bin/emcl | 2 | ||||
-rw-r--r-- | .profile | 3 |
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 "$@" @@ -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" |