Skip to content

spacemacs

whyname edited this page Jul 7, 2016 · 6 revisions

install

linux

apt-get install python-pip git emacs24
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
pip install -U pip
emacs

macOS

windows

config

hot key

help

key description another
C-h-k describe key
C-h-f describe function
C-h-v describe variable

indent

key description another
n << n lines unindent C-c <
n >> n lines indent C-c >
C-M-\ auto indent M-x indent-region

align

key description another
SPC x a = align reapet by ‘=’
SPC x a , align reapet by ‘,’

comment

key description another
SPC c l comment or uncomment

git

key description another
SPC g
SPC g

vim

key description another
gg v G selected all text

evil

key description another
C-z holy and evil

title

key description another
M-left/right 升/降级标题

filetree

key description another
SPC f t 打开文件树 neotree
C-x C-j 进入当前文件夹 dired模式

chinese

sudo apt-get install fcitx
echo "export LC_CTYPE='zh_CN.UTF-8'" >> ~/.profile
emacs

org

导出

[ 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 

段落

纯文本之间留空行,来区分段落

Clone this wiki locally