homebrew-emacs icon indicating copy to clipboard operation
homebrew-emacs copied to clipboard

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

Open poochiethecat opened this issue 7 years ago • 1 comments

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.

poochiethecat avatar Oct 31 '17 11:10 poochiethecat

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!

dunn avatar Nov 02 '17 22:11 dunn