https://github.com/doomemacs/doomemacs/blob/master/docs/getting_started.org#with-homebrew
I use emacs-plus because of the emacs-mac issues with emacsclient. See this issue: railwaycat/homebrew-emacsmacport#52
# required dependencies
brew install git ripgrep
# optional dependencies
brew install coreutils fd
# Installs clang
xcode-select --install
brew tap d12frosted/emacs-plus
brew install emacs-plus
The symlink approach printed by emacs-plus installer and the Doom guide did not work for me.
What did work however was to open the emacs installation folder, right-click to create an alias, then renamed and moved the alias to /Applications
.
# Open installation directory
open -a /usr/local/opt/emacs-plus@29
# Inside Finder, make an alias
# Move the alias to the Applications directory, then rename to "Emacs.app"
Add /usr/local/opt/emacs-plus@29/bin to the path, for me in zshrc:
echo 'export PATH="${PATH}:/usr/local/opt/emacs-plus@29/bin"' >> ~/.zshrc
source ~/.zshrc
which -a emacs
git config --global core.editor "emacsclient -a "
echo 'export KUBECONFIG="emacsclient -a "' >> ~/.zshrc