Skip to content

Commit ec65611

Browse files
committed
add many tips
1 parent df529e9 commit ec65611

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

emacs-faq.org

100755100644
+24-1
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ org-mode提供了`org-goto'命令,可以快速定位
147147

148148
使用 ~C-u C-c .~ 则可以插入当前时间.
149149
** 如何插入行合并的表格
150+
150151
org表格本身只能列合并,而无法行合并. 要插入行合并的表格需要使用table.el提供的表格功能(详见Tbl菜单).
151152

152153
org还提供了一个转换org表格到table表格的方法`org-table-create-with-table.el' (=C-c ~=)
@@ -160,7 +161,23 @@ org还提供了一个转换org表格到table表格的方法`org-table-create-wit
160161
| +-----+-----+
161162
| | | |
162163
+-----+-----+-----+
164+
** 从任意数字开始对列表item进行编号
165+
方法是将 =[@N]= 放到item的开头,这样下一个list item的编号就是N+1,依次类推
166+
例如
167+
#+BEGIN_SRC org
168+
2. [@2] item2
169+
3. item3
170+
4. item4
171+
#+END_SRC
172+
** 调用另一个org文件中的代码块
173+
假设在si.org中有一块名为figure-1的代码块,那么可以通过,下面那样来调用
163174

175+
#+BEGIN_SRC org
176+
,#+call: si.org:figure-1()
177+
#+END_SRC
178+
** 快速插入org date
179+
+ 使用 =C-c . fri RET= 这样,插入active date
180+
+ 使用 =C-c ! fri RET= 这样,插入inactive date
164181

165182
* ispell
166183
** 如何让ispell跳过某段文本不做拼写检查
@@ -348,4 +365,10 @@ Another comparable mode is eyebrowse which have been developed for longer.
348365

349366
例如
350367
=C-x 8 RET ADDRESSED TO THE SUBJECT= 输入℁
351-
**
368+
** 使用tab同时作为缩进和补全的触发键
369+
默认情况下,tab只是用来缩进,但是通过以下配置
370+
#+BEGIN_SRC emacs-lisp
371+
(setq tab-always-indent 'complete)
372+
#+END_SRC
373+
374+
则,第一次按tab,它会缩进,但是再按一次,则表示补全

0 commit comments

Comments
 (0)