1 Display

1.1 too long line highlight

(setq whitespace-style '(lines))
(setq whitespace-line-column 78)
(global-whitespace-mode 1)

2 Macro

key sequence comment
F3 start record macro
F4 end record macro
C-x ( start record macro
C-x ) end record macro
C-x e execute last macro
C-u 10 C-x e execute last macro repeat 100
   

3 Navigate

key sequence comment
C-x r m add file to bookmarks
C-x r l open bookmarks
   

4 Copy & Paste

key sequence comment
C-S-Backspace delete whole line
   

5 Coding

key sequence comment
M-; comment coding
   

6 Replace

替换字符串有很灵活的方式,比如我需要替换如下字符串组用序列数字:

str01
str01
str01
str01

替换成

str1
str2
str3
str4

执行如下键序列:

:M-x replace-regexp
在"Replace regexp:"提示符下输入“01”
在"Replace regexp 01 with:"提示符下输入“\,(1+ \#)”

7 Orgmode

7.1 add footnotes

使用快捷键C-c C-x f添加注脚,使用C-c C-l添加URL链接,使用C-c C-c在footnotes和 正文之间跳转,使用C-c C-o在浏览器打开URL连接

7.2 单行注释

: 注视内容

7.3 添加注释块

<s <TAB>


blog comments powered by Disqus