From 2446aab5a76e00157c62e13ec06b09370df3519a Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sat, 11 May 2019 09:24:43 -0400 Subject: tridactyl and shell: use emacs as default editor --- .config/tridactyl/tridactylrc | 2 ++ .local/bin/emcl | 2 ++ .profile | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 .local/bin/emcl 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" -- cgit v1.2.3-60-g2f50