aboutsummaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2019-01-24 17:04:00 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2019-01-24 17:04:00 +0100
commitb030deb9bc34f52abead32da970af75ebdce8f78 (patch)
treefce383010fb0da90a8386536bbdef96d245b6a48 /bashrc
parent5af5137777e42fa418175f10c262d50421b36dd8 (diff)
downloaddotfiles-b030deb9bc34f52abead32da970af75ebdce8f78.tar.gz
dotfiles-b030deb9bc34f52abead32da970af75ebdce8f78.zip
Use emacsclient as the default editor
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à <msabate@suse.com>
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc4
1 files changed, 2 insertions, 2 deletions
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.