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à --- bin/emacsclient-a-nw | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 bin/emacsclient-a-nw (limited to 'bin/emacsclient-a-nw') diff --git a/bin/emacsclient-a-nw b/bin/emacsclient-a-nw new file mode 100644 index 0000000..e0f2292 --- /dev/null +++ b/bin/emacsclient-a-nw @@ -0,0 +1,18 @@ +#!/bin/bash +# Copyright (C) 2019 Miquel Sabaté Solà +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +emacsclient -a "" -nw "$@" -c -- cgit v1.2.3