Doom

Posted by [cjtong] on Tuesday, May 21, 2024

spacemacs切换原因

  1. spacemacs启动慢
  2. 配置乱

依赖安装

  1. 更新git
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
  1. 安装ripgrep
curl -LO https://github.com/BurntSushi/ripgrep/releases/download/13.0.0/ripgrep_13.0.0_amd64.deb
sudo dpkg -i ripgrep_13.0.0_amd64.deb
  1. 安装fd
sudo apt-get install fd-find
ln -s $(which fdfind) ~/.local/bin/fd

安装doom

git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.config/emacs
~/.config/emacs/bin/doom install
vim ~/.bashrc
export PATH=~/.config/emacs/bin:$PATH # 此步需要执行n遍,一直到全部完成

更新包

doom sync [-up] 报错gnutls_handshake() 反复sync直到不报错 while ! doom sync -up; do :; done

doom upgrade = git pull doom clean doom sync doom update doom doctor doom install doom env doom build

基础使用

spc spc project找文件 spc f p 打开doom配置目录 spc h d * doom帮助手册 spc h d C 打开init.el spc h d c 打开config.el spc h d p d 打开packages.el spc h d m 打开modules spc h p 打开package spc o - 打开dired spc g g 打开magit spc h e 打开*Message* spc h [k v f] 查找快捷键 变量 函数 spc b x 打开scratch spc tab n 创建workspace [1 2 3] 切换

配置

(cc +lsp) lsp sudo apt-get install clangd-11 sudo apt install glslang-tools sudo apt install shellcheck npm install -g marked

快捷键问题

c-y 不可用冲突 替换 c-r + c-o p c-; sogou select paste gsettings set org.gnome.desktop.input-sources xkb-options “[’’]”

discord

https://discord.com/channels/406534637242810369/671478850408022036/1090055478605783130

参考

https://www.codeplayer.org/Wiki/Emacs/doom-guide.html https://blog.csdn.net/weixin_37926734/article/details/124115485

「真诚赞赏,手留余香」

CJ.Tong Blog

真诚赞赏,手留余香

使用微信扫描二维码完成支付


comments powered by Disqus