brew-stuff / homebrew-emacs

Various Emacs formulae for the Homebrew package manager
Other
63 stars 14 forks source link

With oh-my-zsh plugin 'emacs' enabled, many formulae will start gui emacs on install/uninstall/doctor etc. #714

Open poochiethecat opened 7 years ago

poochiethecat commented 7 years ago

I have enabled the oh-my-zsh plugin emacs, which aliases emacs to a emacsclient.sh script that starts an emacs server and emacs gui.

When I tapped dunn/emacs and when installing/updating/uninstalling formulae of the tap, emacs gui is opened (I suspect because emacs is called in the formulae's test). This also happens when calling brew doctor. At the moment, the only way to avoid emacs opening is uninstalling all formulae and untapping dunn/emacs. I was so far not able to find a workaround/fix for the problem, but maybe avoiding aliases in the tests would do the trick.

dunn commented 7 years ago

One way to avoid this might be to pass the full path to those emacs invocations. If you have a chance to try that and it works, I'd love a PR. Otherwise I'll try to take a closer look this weekend!