spacemacs筆記

1 指令筆記

spc h spc #help docs
spc : #excute emacs function
spc t g #toggle golden ratio
spc y #avy goto line
spc spc CHR #avy goto word
spc S #auto Spelling
spc r y #show kill ring

1.1 helm and project

spc f e d #find .spacemacs 
spc f r #find recent file
spc f f #find file
spc p f #find file in project
spc p I #remove project file find cache
spc p p #switch project
spc b f # open in finder(OSX)

1.2 dired

spc f j #goto dired

R # rename
C # copy
+ #create folder
C-x C-f #create new file
d # mark as deleted
x # excute marked command
g #reload

1.3 magit

spc g s #git status

C-c C-c #commit訊息編輯完後save

g # refresh all buffer. This is very useful when git branch changing

1.4 neotree

spc f t #open newtree
spc p t #open neotree with project root
spc 0 #cursor to neotree
gr #refresh
r #rename a node
c #create a node
d #delete a node

1.5 evil fold

z o #evil open fold
z c #evil close fold
z r #evil open folds
z m #evil open folds
z a #evil toggle fold

1.6 Searching and replace

spc s p # project search
spc s l # focus the last converted search buffer
spc s s # helm current file search
spc s f # search at current folder or file
* -> e -> S # search symbol and replace all buffer
* -> e -> F -> S # search symbol and replace def block

spc n f -> :%s/aaa/bbb/g # narrow to function and do vim style replace
spc n w # return from narrow

spc s p -> C-c C-e # after search enter C-c C-e into helm-edit that can do cross file replacement
Last Updated 2017-03-10 五 10:26.
Render by hexo-renderer-org with Emacs 25.2.1 (Org mode 8.2.10)