系统fedora41 桌面环境gnome47 emacs-29.4
./configure --with-mailutils --with-pop --with-kerberos --with-kerberos5 --with-hesiod --with-mail-unlink --with-sound=yes --with-pdumper=auto --with-unexec=auto --with-dumping=pdumper --with-x-toolkit=gtk3 --with-wide-int --with-cairo-xcb --with-imagemagick --with-json --with-tree-sitter --with-pgtk --with-gconf --with-small-ja-dic --with-file-notification=yes --with-xwidgets --without-compress-install --with-gameuser=$(whoami) --with-gnustep-conf=/etc/GNUstep/GNUstep.conf --with-native-compilation=aot --with-x
适配了大文件、json、tree-sitter、cairo图形库、gnustep、Lisp原生编译等。
这些package有用没用我不知道,但一次性解决,不想在搞第n次了(重编译过7、8次了 )。一次性代价就是make了很久,占用了不少硬盘空间。
我之前是用下面这个自己编译,后面改成了用appimage
./autogen.sh
./configure --prefix=$HOME/.local --program-transform-name='s/^ctags$/ctags.emacs/' CFLAGS="-O2" --without-x --with-x-toolkit=no --with-native-compilation=no --with-small-ja-dic -without-dbus --without-gconf --without-gsettings --without-sound --with-file-notification=no --with-gnutls=ifavailable
···
这个在 Linux 铁定是没用的
mailutils 和 pop 也是大概率用不上的
–with-wide-int
这个我估摸目前没有什么包用得上,一个可能是 GNU LilyPond 这样 32-bit 不够用,用 gmp 又有 bug 的。用不上的话,不开可以节约点内存
https://lists.gnu.org/archive/html/emacs-devel/2015-10/msg01250.html
1 个赞
你把 native-comp 关了,在比较新的 cpu 也就 2-3分钟时间。
选项不是越多越好,例如 imagemagick 完全用不上,json 也是默认开的,with-x 也是用不上自己开, 写 pgtk 了也不用指定 x-toolkit 为 gtk3。
要确认选项最好还是看 ./configure 执行的结果,再慢慢改。更何况有些选项开了也没啥用(
2 个赞
这个倒是要看个人情况,用 org-mode 有挿图需求可以用得上。
Emacs 29 还是要通过 jansson 才开。
json emacs不会自己开的,我试过编译从27一直到29,不加这个选项是不行的。
有种比较极端的方式是不用 cairo,虽然不能渲染 color emoji,但 org-mode 里面图片预览滚动不会卡顿。
都编译了那还是用 30 以上吧(
without-cairo
如果用的是 libXft ,在 2.35 及以上版本就支持 color emoji 了。在 Emacs 里面只需要
(setq xft-ignore-color-fonts nil)
如果用的是 Noto Color Emoji 就把这个黑名单清空了
(setq face-ignored-fonts nil)
我关了 cairo 以后这么用着暂时没什么问题。
2 个赞
原来如此,我说为什么关了cairo后,为什么有些 icon 有图标有颜色,而 emoji fallbak 的 free symbol a 了。谢了