mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-09 13:10:40 +00:00
c501d0f2c6
Incorporate changes after code review of #408
10 lines
262 B
Fish
10 lines
262 B
Fish
function __launch_emacs
|
|
set -l x (emacsclient --alternate-editor '' --eval '(x-display-list)' 2>/dev/null)
|
|
|
|
if test -z "$x" -o "$x" = nil
|
|
emacsclient $argv --alternate-editor '' --create-frame
|
|
else
|
|
emacsclient $argv --alternate-editor ''
|
|
end
|
|
end
|