From b030deb9bc34f52abead32da970af75ebdce8f78 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 24 Jan 2019 17:04:00 +0100 Subject: Use emacsclient as the default editor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I've created a special emacsclient-a-nw executable script which should suffice for places like the gitconfig or bashrc. The good thing about having emacsclient as the default editor, is that then you gain Magit, for example, when writing `git commit`. Signed-off-by: Miquel Sabaté Solà --- bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bashrc') diff --git a/bashrc b/bashrc index 2d212d6..1bdad72 100644 --- a/bashrc +++ b/bashrc @@ -30,8 +30,8 @@ source_maybe() { # Editors & terminals. # Set vim as the default editor. -export EDITOR=vim -export VISUAL=vim +export EDITOR=emacsclient-a-nw +export VISUAL=emacsclient-a-nw alias vi=vim # Shortcut for GNU Emacs. -- cgit v1.2.3