如何在macos中安装emacs

我只是一个虾纸丫 提交于 2019-12-05 09:29:43

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快捷方式

类似建立图标的命令

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!