2022 Doom Emacs Configuration
文章目录
Emacs 29 版本 Doom Emacs 配置。
他人配置列表:
Update Logs
[2022-01-01]
upgrade emacs to emacs29 native
remove some un-required packages
fix: code-review trigger error
$ vim modules/tools/magit/packages.el
remove
code-review
pin tag.$ rm -rf .emacs.d/.local/straight/build-29.0.50/code-review
and run
$ doom sync
[2021-07-02]
upgrade emacs to emacs28 native
[2021-05-30]
add
gcl/async-shell-command-silently
Function declaration
mine
|
|
embrace
|
|
org-mode
|
|
Init.el
|
|
Theme Settings
|
|
Basic Settings
auto generate code into config.el, init.el, packages.el, …, and run `cp-config-org.sh`
to bakup some of my private things.
enable/disable modes:
保存时自动将 `config.org` 拆解成各个 *.el 文件。
|
|
basic settings
|
|
Keybindings
Keybindings reference:
Key Table
Key | Function |
---|---|
, | |
, O | org-ol-tree |
g | evil key |
gss | avy-goto-char-2 |
gs/ | avy-goto-char-timer |
C | |
C-a | crux-move-beginning-of-line |
C-s | +default/search-buffer |
C-) | sp-forward-slurp-sexp |
C-( | sp-forward-barf-sexp |
C-{ | sp-backward-slurp-sexp |
C-} | sp-backward-barf-sexp |
C-' | cycle-quotes |
C-; | tiny-expand |
s(Command) | |
s ' | switch to next window |
s-i | gcl/string-inflection-cycle-auto |
s-- | sp-splice-sexp |
s-_ | sp-rewrap-sexp |
M(Option/Alt) | |
M-i | parrot |
M-z | zzz-to-char |
M-s M-s | isearch-toggle-color-rg |
S(Shift) | |
S-M-SPC | counsel-osx-app |
C-c | |
C-c s [x] | search engine |
C-c d d | dash-at-point |
C-c d D | dash-at-point-with-docset |
SPC n | |
SPC n d | deft |
SPC o | |
SPC o o | +macos/reveal-in-finder |
SPC o t | vterm-toggle |
SPC o T | vterm-here |
SPC b | |
SPC b O | +doom/kill-other-buffers |
SPC c | |
SPC c j | consult-lsp-symbols |
SPC s | |
SPC s i | consult-imenu |
SPC s p | consult-git-grep |
Unbindings
|
|
F1~12(kbd)
|
|
Common
|
|
SPC leader
|
|
org-mode
|
|
Package Settings
mixed-pitch
|
|
tiny
|
|
pangu-spacing
|
|
hydra
|
|
lsp
|
|
which-key
Doom Emacs default configuration is too slow, let’s speed it up.
|
|
visual-fill-column
|
|
multi-iedit
|
|
exec-path-from-shell
|
|
color-rg
|
|
visual-regexp
|
|
org-mode
|
|
org-roam-ui
|
|
org-fragtog
|
|
org-ol-tree
|
|
org-appear
|
|
org-fancy-priorities
|
|
dash-at-point
|
|
company
|
|
counsel-osx-app
|
|
cycle-quotes
|
|
dotenv
|
|
emacs-everywhere
|
|
engine-mode
|
|
flycheck
|
|
js-doc
|
|
leetcode
|
|
autoinsert
|
|
smartparen
|
|
popper
|
|
parrot
|
|
org-roam
|
|
Development Settings
Front-end
|
|
Packages
|
|
Usage Practices
tiny
key: C-; tiny-expand
m10
-> 0 1 2 3 4 5 6 7 8 9 10
m6\n15%s,0%o,0x%x
, 格式化输出, %s
: 十进制, %o
: 八进制, %x
: 十六进制
\n
, mean new line
6,06,0x6 7,07,0x7 8,010,0x8 9,011,0x9 10,012,0xa 11,013,0xb 12,014,0xc 13,015,0xd 14,016,0xe 15,017,0xf
m5 10*xx
-> 25 36 49 64 81 100
m5 10*xxx
-> 125 216 343 512 729 1000
管道符,将结果转换:
m5 10*xx|0x%x
-> 0x19 0x24 0x31 0x40 0x51 0x64
10 个字符,从 a 开始
m10+x?a%c
-> a b c d e f g h i j k
10 个字符,从 d 开始:
m10+x?d%c
-> d e f g h i j k l m n
m10+x?D%c
-> D E F G H I J K L M N
数字转成字符:
m97,105stringx
-> a,b,c,d,e,f,g,h,i
并大写化, x
代表替换位
m97,105stringxupcasex
-> aA,bB,cC,dD,eE,fF,gG,hH,iI
m,3|%(+ x x) and %(* x x) and %s
-> 0 and 0 and 0,2 and 1 and 1,4 and 4 and 2,6 and 9 and 3
m1\n5|%d. TODO http://emacsrocks.com/e%02d.html
->
Fixes
fix the org-roam maybe trigger error(code-review
related).
|
|