Emacs on macOS
tags :
Summary #
I spent some good amount of time, several days (5), to complete the setup on
From this ’s discussion , emacs-mac - I used this one - is the best one.
- installation of emacs-mac steps on stackexchange
- certified or complaint OS
- is the default shell in macOS from Catalina version released in 2019.
- In earlier versions it shell
emacs-macosx #
I downloaded the dmg file and used this emacs. worked with some extra configurations. daemon mode was because of the server-socket-dir location, after removing this it worked; But since it was not working for this reason, I moved on to use “emacs-plus”
#
brew install emacs # without gui
brew install --cask emacs # with gui emacs28, on
emacs-plus #
https://github.com/d12frosted/homebrew-emacs-plus
brew install emacs-plus@28 --with-no-frame-refocus --with-mailutils --with-debug --with-imagemagick --with-native-comp
Installation on
I installed with `–with-native-comp` but faced few problems with packages, used following command to install
brew install emacs-plus@28 --with-no-frame-refocus --with-mailutils --with-debug --with-imagemagickHelpful references
To create macos application using . https://github.com/d12frosted/homebrew-emacs-plus/issues/398
Installation on
brew install emacs-plus@28 --with-dbus --with-no-frame-refocus --with-mailutils --with-debug --with-imagemagick --with-native-compworked
Installation on
brew install emacs-plus@29 --with-dbus --with-no-frame-refocus --with-mailutils --with-debug --with-imagemagick --with-native-compworked
issue
Spent good of time to debug this server-socket-dir setting this to the path ~/.emacs.d/server was not allowing the to communicate with or server
To check the socket emacs server or daemon is using
lsof -c Emacs | grep server | tr -s " " | cut -d' ' -f8\ # /var/folders/jc/kms8fz7j26b8jmc038dt6dcr0000gn/T/emacs501/server
refocusing issue
closing the takes the focus back to the opened emacs ui in another workspace on https://github.com/alphapapa/yequake/issues/13
#
Best suited to use generic based software on , not necessarily optimized for macOS.
sudo port install emacs
emacs-mac-port #
https://news.ycombinator.com/item?id=9594031 https://github.com/railwaycat/homebrew-emacsmacport
Helpful references #
https://github.com/orgs/Homebrew/discussions/3165 emacs-plus and homebrew-emacsport are good for native compilation.