From 4fbd54fcf735d82270245118ca5ba94ede071af2 Mon Sep 17 00:00:00 2001 From: "Bernhard F.W. Gschaider" Date: Tue, 2 Aug 2016 11:17:33 +0200 Subject: [PATCH] Add an alias that allows calling emacs WITHOUT the emacsclient For situations where a separate instance of emacs is desired. For instance configuration testing --- plugins/emacs/emacs.plugin.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/emacs/emacs.plugin.zsh b/plugins/emacs/emacs.plugin.zsh index c102a5a1..e9e8540b 100644 --- a/plugins/emacs/emacs.plugin.zsh +++ b/plugins/emacs/emacs.plugin.zsh @@ -11,6 +11,8 @@ if "$ZSH/tools/require_tool.sh" emacs 24 2>/dev/null ; then + export REAL_EMACS_PATH=$(which emacs) + export EMACS_PLUGIN_LAUNCHER="$ZSH/plugins/emacs/emacsclient.sh" # set EDITOR if not already defined. @@ -26,6 +28,8 @@ if "$ZSH/tools/require_tool.sh" emacs 24 2>/dev/null ; then # create a new X frame alias eframe='emacsclient --alternate-editor "" --create-frame' + alias emacsnc="$REAL_EMACS_PATH" + alias enc="$REAL_EMACS_PATH" # Write to standard output the path to the file # opened in the current buffer.