Browse Source

Revert "Start emacs --daemon if available and not running"

This reverts commit 309a5546a3.
master
David Trudgian 3 months ago
parent
commit
aa63a420c0
  1. 15
      source/50_editor.sh
  2. 16
      source_fish/50_editor.fish

15
source/50_editor.sh

@ -1,18 +1,5 @@
# Editing
if command -v emacs &> /dev/null; then
if ! ps -e -o args | grep -q '^emacs --daemon$'; then
echo "Starting Emacs Daemon..."
emacs --daemon &> /dev/null
fi
fi
if command -v emacsclient &> /dev/null
then
export EDITOR='emacsclient -c --alternate-editor=vim'
else
export EDITOR='vim'
fi
export EDITOR='emacsclient -c --alternate-editor=vim'
export VISUAL="$EDITOR"
alias q="$EDITOR"

16
source_fish/50_editor.fish

@ -1,17 +1,5 @@
# Editing
if command -v emacs > /dev/null 2> /dev/null
if ! ps -e -o args | grep -q '^emacs --daemon$'
echo "Starting Emacs Daemon..."
emacs --daemon > /dev/null 2> /dev/null
end
end
if command -v emacsclient > /dev/null 2> /dev/null
export EDITOR='emacsclient -c --alternate-editor=vim'
else
export EDITOR='vim'
end
export VISUAL="$EDITOR"
set -x EDITOR 'emacsclient -c --alternate-editor=vim'
set -x VISUAL "$EDITOR"
alias q="$EDITOR"
Loading…
Cancel
Save