index all rss twitter github linkedin email

Álvaro Ramírez

16 March 2019 No Emacs frame refocus on macOS

This one's been bugging me for a while. On macOS, Emacs automatically focuses (raises) other frames when one is closed.


This has the unfortunate side-effect that I could be moved from one macOS desktop/space to another when closing an Emacs frame.

Finally managed do something about it. Since I install Emacs on macOS via homebrew, a small patch on emacs-plus recipe did the job.


Patch currently lives at xenodium/homebrew-emacs-plus fork. To use:

brew tap xenodium/emacs-plus
brew install emacs-plus --with-no-frame-refocus --HEAD

Balance restored.

UPDATE: Pull request merged. Use d12frosted/emacs-plus with –with-no-frame-refocus.