brew tap laishulu/macism
brew install macism # 在终端运行 macism 就可以查看到当前输入法的名字
brew install discount
brew install git ripgrep
brew install coreutils fd
xcode-select --install
推荐安装 emacs-mac
brew tap railwaycat/emacsmacport
# 添加后面安装选项,是为了支持原生输入法切换:semacs-smart-input-source
brew install emacs-mac --with-modules --with-rsvg --with-imagemagick --with-natural-title-bar
rm -rf /Applications/Emacs.app
ln -s /usr/local/opt/emacs-mac/Emacs.app /Applications/Emacs.app
不建议安装 emacs-plus
brew tap d12frosted/emacs-plus # brew 有个默认的仓库,brew tap 你可以看成是第三方的仓库;tap仓库源默认是Github,但也不限制于这一个地方
brew install emacs-plus --without-spacemacs-icon # 不用spacemacs的icon, 用回emacs原来的
ln -s /usr/local/opt/emacs-plus/Emacs.app /Applications/Emacs.app
1、安装
mv ~/.emacs.d ~/.emacs.d.bak # 如果之前有安装其它版本的 emacs, 这里先备份配置文件。
git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.emacs.d # 默认安装的是develop分支, master分支太久不更新。
~/.emacs.d/bin/doom install
在终端下需要设置 vpn 代理翻墙才能安装成功, 终端下翻墙可参考 Max OSX 终端走shadowsocks代理
它会自动生成 ~/.doom.d 目录,我们自己的配置都放在这,主要有 3 个文件
- config.el
- init.el
- packages.el
2、 编辑 ~/.bash_profile 文件,把 ~/.emacs.d/bin 加入 PATH 路径
vi ~/.bash_profile
## doom emacs
export PATH=$PATH:~/.emacs.d/bin
5、 更新配置、查找问题
获取 doom 支持的命令 dooh help
更新 doom 运行 doom upgrade
修改配置后要运行 doom sync
遇到问题可以运行 doom doctor