Emacs Tricks(不断更新中)

来源:互联网 发布:淘宝店铺同行恶性竞争 编辑:程序博客网 时间:2024/04/30 06:14

此博文不再更新,请移歩:http://visayafan.com/Coding/Lisp/Emacs.html

1. flush-line

删除符合正则表达式的,例如删除空行^[ \t]*$

2. Eshell中清屏

;; cls 清屏(defun eshell/cls()  "to clear the eshell buffer."  (interactive)  (let ((inhibit-read-only t))    (erase-buffer)))

3.org-mode中example的src环境

<e TAB可得example环境
<s TAB可得src环境
[这么好的快捷键居然没有发现……汗]


原创粉丝点击