Org Mode常用快捷键
Table of Contents
org-mode
org-attach
方便地添加附件链接
在 .emacs 里加一句 (setq org-attach-store-link-p 'attached) 即可,见此。
在默认文件浏览器中打开org-attach的文件夹
用 (add-to-list 'org-file-apps '(directory . default)) 即可,类似这个问答。
还可以用字符串以及 %s ,见这个问答。
org-agenda
https://orgmode.org/manual/Agenda-Commands.html
Agenda Files
C-c [ Add current file to the list of agenda files.
C-c ] Remove current file from the list of agenda files.
C-' C-, Cycle through agenda file list, visiting one file after the other.
启动时打开org-agenda
(add-hook 'after-init-hook 'org-agenda-list) 即可,见此问答。
org-agenda显示clocked time
l (或 v l ,也即 org-agenda-log-mode )即可,
& Window Split - (setq org-agenda-window-setup 'current-window)
Type C-h v org-agenda-window-setup for other options.
https://stackoverflow.com/questions/10635989/emacs-org-agenda-list-destroy-my-windows-splits
org-export
导出为Markdown
直接 C-c C-e ,在选择页面输入 m m 即可,见手册。
不过,可能需要用 M-x customize-option 先改一下 org-export-backends ,开启 Markdown 选项,见此问答。
org
写代码块
<body>
把时间戳向前移动一周
C-c . 调出日历,然后 S-UP 即可在日历中移动,见此回答。
把标题变成列表
C-c - 即可(反过来是 C-c * ),见此回答。
剪切并拷贝整个子树
C-c C-x C-w 与 C-c C-x C-y ,见此回答。(其实也可以用 C-y 粘贴)
Subtrees
C-c C-x C-w (org-cut-subtree)
see https://orgmode.org/manual/Structure-Editing.html
把一整个子树标记为 DONE
似乎没有简单的办法,只能用 (org-map-entries) 函数……见此问答以及此问答。
插入带小时和分钟的时间戳
在命令前加个 C-u 即可,见此回答。
显示图片 :ATTACH:
org-mode 似乎可以在行内显示本地图片,只需用 [[./img/cat.jpg]] 语法即可。用 C-c C-x C-v 开关,见手册。

移动整个子树
M-UP 和 M-DOWN (移动一行是 M-S-UP 和 M-S-DOWN )
Code Blocks
用 C-C C-, 召唤Structure Template就可以了。
https://orgmode.org/manual/Structure-of-Code-Blocks.html
启动时如何显示
见文档的Initial Visibility部分,也可以用 C-c C-x p (org-set-property) 来设置一个节点的VISIBILITY,参见Property Syntax。
外观
Org Indent Mode
(org-indent-mode) ,见文档。
设置heading大小为1
使用 M-x customize-face ,见此回答。(这个回答可能会破坏theme)
Google了下,没发现多少内容——看来没什么需求。
中英文对齐 [1/1]
TODOs
TODO的优先级
见手册。似乎1~64都严格高于A,实验可得 A=65 B=66 C=67,以此类推。
如需要更多字母,如下更改即可,见此问答。
(setq org-enable-priority-commands t
org-highest-priority ?A
org-default-priority ?J
org-lowest-priority ?J
)
使用计时器
C-c C-x 0 开始正计时, C-c C-x ; 开始倒计时。
C-c C-x - 插入时间戳列表, M-RET 继续这个列表。
C-c C-x , 暂停计时器, C-c C-x _ 停止计时器。
Creating Timestamps, Deadlines and Scheduling
C-c . timestamp <>
C-c ! inactive timestamp []
C-c C-d DEADLINE
C-c C-s SCHEDULED
"[ ]" Items
https://orgmode.org/manual/Breaking-Down-Tasks.html
Clock
C-c C-x C-i clock-in
C-c C-x C-o clock-out
C-c C-x C-e update estimate
C-c C-x C-q cancel
C-c C-x C-j jump to task
C-c C-x C-x (org-clock-in-last)
C-c C-c or C-c C-y (org-evaluate-time-range)
S-M-UP (org-timestamp-up)
S-M-DOWN (org-timestamp-down)
see https://orgmode.org/manual/Clocking-commands.html
Manipulating Clocked Time
M-S-Up / M-S-Down (also modifies previous clock to avoid overlap) https://emacs.stackexchange.com/questions/16983/how-to-manipulate-clock-times-org-mode
S-Up / S-Down (does not try to avoid overlap)
Show Clocked Time
v L in agenda
C-u C-u l in agenda – https://emacs.stackexchange.com/questions/19746/get-a-timeline-of-clocked-time-in-org-mode
C-c C-x C-d – https://writequit.org/denver-emacs/presentations/2017-04-11-time-clocking-with-org.html
Clock Table
org-clock-report
C-c C-c or C-c C-x C-u (org-dblock-updatre)
see https://orgmode.org/manual/The-clock-table.html
and https://orgmode.org/manual/Dynamic-Blocks.html
show in agenda
打开手册
C-h i m org<RET> 即可,见这个问答。
跨文件搜索
C-c a 打开 org-agenda ,然后 s 进行全文搜索,见手册。
m 进行tag搜索,见手册。

浙公网安备 33010602011771号