用户工具

站点工具


build_emacs_on_macos

**这是本文档旧的修订版!**

Build Emacs on macOS

步骤

下载源码

git clone git://git.savannah.gnu.org/emacs.git
cd emacs
git checkout emacs-28 # 以emacs 28为例,你可以切换到其他的branch

下载依赖

brew install libgccjit

编译

./autogen.sh

./configure \
--with-mailutils \
--with-ns \
--with-imagemagick \
--with-cairo \
--with-modules \
--with-xml2 \
--with-gnutls \
--with-json \
--with-rsvg \
--disable-silent-rules \
--disable-ns-self-contained \
--without-dbus \
--with-native-compilation \
--with-xwidgets 

make -j4
make install

测试

# 直接打开 Emacs
open nextstep/Emacs.app
# 在 Finder 中打开 Emacs,方便拖到 /Applications
open -R nextstep/Emacs.app

参考链接

build_emacs_on_macos.1647954925.txt.gz · 最后更改: (外部编辑)