new macbook pro env
x86的一堆软件重新装一下,主要是emacs重新编译native。
emacs 30.1重新编译
prepaer 1
2
3
4
5brew install autoconf automake cmake libgccjit gnutls texinfo jansson tree-sitter gcc libgccgit
curl -O https://mirrors.ustc.edu.cn/gnu/emacs/emacs-30.1.tar.xz
tar -xvf emacs-30.1.tar.xz
cd emacs-30.1
./autogen.sh
. gcc_env.sh
1
2
3export CC="/opt/homebrew/opt/gcc/bin/gcc-15"
export CXX="/opt/homebrew/opt/gcc/bin/g++-15"
export LIBRARY_PATH="/opt/homebrew/opt/gcc/lib/gcc/15:$LIBRARY_PATH"
configure and make 1
2
3
4
5
6
7
8./configure \
--with-native-compilation \
--with-json \
--with-tree-sitter \
--with-gnutls \
--without-ns
make -j
make install
1 | $ doom doctor |
好嘞!整得挺明白啊老铁!Emacs 整得溜光水滑的,这回可劲儿造吧!代码敲得咔咔的,插件跑得嗖嗖的,那叫一个得劲儿!有啥不明白的随时吱声,咱这嘎达给你支棱起来!开心就完事儿了! 😄