oh-my-fish / plugin-emacs

Wrapper for daemon functionality of Emacs.
MIT License
19 stars 10 forks source link

funced does open emacsclient rightly. #15

Open equwal opened 4 years ago

equwal commented 4 years ago

Ideally funced should do something like this:

function fed
    funced -e "emacsclient -a ''" $argv
end

But instead this is what funced looks like:

$ funced fed
Editor exited but the function was not modified

which is not desireable. This seems to be because it is called with --no-wait, which is not how funced is designed. Try this:

function fedupwithbug
    funced -e "emacsclient -a '' --no-wait" $argv
end
fedupwithbug fedupwithbug