Skip to content

Instantly share code, notes, and snippets.

@scotthaleen
Last active March 9, 2024 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scotthaleen/c2e589cc006a5836ec4a9c096667dc6f to your computer and use it in GitHub Desktop.
Save scotthaleen/c2e589cc006a5836ec4a9c096667dc6f to your computer and use it in GitHub Desktop.
emacs master
#!/bin/bash
export EMACSLOADPATH="${EMACSLOADPATH}:$(pwd)"
open -a ~/Applications/Emacs.app --args --eval "(cd \"${PWD}\")" "$@"

Emacs 29 (2023-02-22)

export PATH="/usr/local/opt/imagemagick@7/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/imagemagick@7/lib"
export CPPFLAGS="-I/usr/local/opt/imagemagick@7/include"
export PKG_CONFIG_PATH="/usr/local/opt/imagemagick@7/lib/pkgconfig"


export LDFLAGS="-L/usr/local/opt/libffi/lib $LDFLAGS"
export CPPFLAGS="-I/usr/local/opt/libffi/include $CPPFLAGS"
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig:$PKG_CONFIG_PATH"
./autogen.sh
./configure --with-gnutls --without-pop --with-imagemagick --without-x --with-json --without-dbus --with-ns --with-tree-sitter --with-xml2 --with-modules

# make -C lisp autoloads-force
# need to remove old *.elc files from lisp/ if using _dirty_ git directory 
make
make install
mv nextstep/Emacs.app ~/Applications/

https://www.emacswiki.org/emacs/EmacsForMacOS#toc23

#!/bin/sh
## /usr/local/bin/emacsnw
## launch in terminal
~/Applications/Emacs.app/Contents/MacOS/Emacs -nw "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment