如何在macos中安装emacs

macos版本: catalina 10.15.1

emacs版本: emacs 26.3

源码编译安装

* with_ns在macos中是默认开启的

* gnutls找不到的原因是没有安装pkgconfig包

* 提示的邮件客户端问题可以用 --with-mailutils --with-pop 解决

* 编译输出的路径是固定的, 在./configure时用--prefix=<INSTALL_PATH>来配置无效

* 输出路径就在源码目录的nextstep目录中, 检查其中的Emacs.app目录, 可以拷贝到/Applications 或 /Users/<user>/Applications中, 完成安装

* 在mac中添加daemon 和client的应用程序图标:

** 通过script editor 建立脚本文件, 并保存为Application类型, 脚本如下:

tell application "Terminal"
do shell script "/Applications/Emacs.app/Contents/MacOS/Emacs --daemon"
end tell

tell application "Terminal"
do shell script "/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -c"
end tell

** 换图标: 路径: /Applications/Emacs.app/Contents/Resources/Emacs.icns

** daemon不要在docker中显示图标:/Applications/Emacs.app/Contents/info.plist

增加此字段:

<key>LSUIElement</key>
<true/>

** 建立binary快捷方式

类似建立图标的命令

猜你喜欢

转载自www.cnblogs.com/koren/p/11919214.html