Skip to content

Instantly share code, notes, and snippets.

@sebnyberg
Last active January 10, 2024 04:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sebnyberg/f00d21690f2303ba9743d78c55efffeb to your computer and use it in GitHub Desktop.
Save sebnyberg/f00d21690f2303ba9743d78c55efffeb to your computer and use it in GitHub Desktop.
Emacs 29 MacOS setup

Emacs 29 + Doom setup for MacOS

Installation (from Doom guide)

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

Spotlight setup

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"

Binaries

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 / Kubectl editor

git config --global core.editor "emacsclient -a "
echo 'export KUBECONFIG="emacsclient -a "' >> ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment