From f2d23b818290e2719cc2898fbd9d25a5b743c5ec Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 10 Jul 2013 11:39:13 +0200 Subject: [PATCH] fish: Set EDITOR variable and edit function to use -n and -create-frame option in emacsclient --- fish/config.fish | 2 +- fish/functions/edit.fish | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fish/config.fish b/fish/config.fish index b47d60adb..40a4e809d 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -14,7 +14,7 @@ function fish_right_prompt echo -n ']' end -set -gx EDITOR emacsclient +set -gx EDITOR "emacsclient -n -create-frame" set -gx ALTERNATE_EDITOR emacs set -gx VISUAL emacsclient diff --git a/fish/functions/edit.fish b/fish/functions/edit.fish index 83f6eb854..61bf37345 100644 --- a/fish/functions/edit.fish +++ b/fish/functions/edit.fish @@ -1,3 +1,3 @@ function edit - emacsclient -no-wait $argv + emacsclient -no-wait -create-frame $argv end \ No newline at end of file