-
Notifications
You must be signed in to change notification settings - Fork 0
spacemacs
whyname edited this page Jul 7, 2016
·
6 revisions
apt-get install python-pip git emacs24
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
pip install -U pip
emacs
key | description | another |
---|---|---|
C-h-k | describe key | |
C-h-f | describe function | |
C-h-v | describe variable |
key | description | another |
---|---|---|
n << | n lines unindent | C-c < |
n >> | n lines indent | C-c > |
C-M-\ | auto indent | M-x indent-region |
key | description | another |
---|---|---|
SPC x a = | align reapet by ‘=’ | |
SPC x a , | align reapet by ‘,’ |
key | description | another |
---|---|---|
SPC c l | comment or uncomment |
key | description | another |
---|---|---|
SPC g | ||
SPC g |
key | description | another |
---|---|---|
gg v G | selected all text |
key | description | another |
---|---|---|
C-z | holy and evil |
key | description | another |
---|---|---|
M-left/right | 升/降级标题 |
key | description | another |
---|---|---|
SPC f t | 打开文件树 | neotree |
C-x C-j | 进入当前文件夹 | dired模式 |
sudo apt-get install fcitx
echo "export LC_CTYPE='zh_CN.UTF-8'" >> ~/.profile
emacs
[ C-c C-e ]: 导出为html, PDF或者其他格式
输入代码块,可以在 emacs 中先输入 <,再输入 s,再按TAB键来生成代码块模板。有以下快捷模板,
s #+BEGIN_SRC ... #+END_SRC e #+BEGIN_EXAMPLE ... #+END_EXAMPLE q #+BEGIN_QUOTE ... #+END_QUOTE v #+BEGIN_VERSE ... #+END_VERSE c #+BEGIN_CENTER ... #+END_CENTER l #+BEGIN_LaTeX ... #+END_LaTeX L #+LaTeX: h #+BEGIN_HTML ... #+END_HTML H #+HTML: a #+BEGIN_ASCII ... #+END_ASCII A #+ASCII: i #+INDEX: line I #+INCLUDE: line
纯文本之间留空行,来区分段落