Use emacsclient with doom.
This commit is contained in:
8
.bashrc
8
.bashrc
@ -138,17 +138,17 @@ source /usr/share/doc/fzf/examples/key-bindings.bash
|
|||||||
|
|
||||||
# Configure emacs location and aliases
|
# Configure emacs location and aliases
|
||||||
export PATH=$PATH:/home/james/.config/emacs/bin/
|
export PATH=$PATH:/home/james/.config/emacs/bin/
|
||||||
alias emacs="doom run"
|
alias emacs="emacsclient -nw -a 'doom run --bg-daemon && emacsclient -nw'"
|
||||||
alias nano="doom run -nw"
|
alias nano="emacsclient -nw -a 'doom run --bg-daemon' && emacsclient -nw"
|
||||||
|
|
||||||
function e {
|
function e {
|
||||||
|
|
||||||
# If the file exists just open it
|
# If the file exists just open it
|
||||||
if test -f "$1"; then
|
if test -f "$1"; then
|
||||||
doom run -nw "$1"
|
emacsclient -nw -a 'doom run --bg-daemon && emacsclient -nw' "$1"
|
||||||
|
|
||||||
# Otherwise we should search for it
|
# Otherwise we should search for it
|
||||||
else doom run -nw $(fzf --height 40% --reverse -i --query "$1")
|
else emacsclient -nw -a 'doom run --bg-daemon && emacsclient -nw' $(fzf --height 40% --reverse -i --query "$1")
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user