Table of Contents

  1. org-mode
    1. org-attach
      1. 方便地添加附件链接
      2. 在默认文件浏览器中打开org-attach的文件夹
    2. org-agenda
      1. Agenda Files
      2. 启动时打开org-agenda
      3. org-agenda显示clocked time
      4. & Window Split – (setq org-agenda-window-setup 'current-window)
    3. org-export
      1. 导出为Markdown
    4. org
      1. 写代码块
      2. 把时间戳向前移动一周
      3. 把标题变成列表
      4. 剪切并拷贝整个子树
      5. Subtrees
      6. 把一整个子树标记为 DONE
      7. 插入带小时和分钟的时间戳
      8. 显示图片:ATTACH:
      9. 移动整个子树
      10. Code Blocks
    5. 启动时如何显示
    6. 外观
      1. Org Indent Mode
      2. 设置heading大小为1
      3. 中英文对齐 [1/1]
    7. TODOs
      1. TODO的优先级
      2. 使用计时器
      3. Creating Timestamps, Deadlines and Scheduling
      4. “[ ]” Items
    8. Clock
      1. Manipulating Clocked Time
      2. Show Clocked Time
      3. Clock Table
      4. show in agenda
    9. 打开手册
    10. 跨文件搜索
    11. RSS Feeds

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

写代码块

手册,如下(或者用 C-c C-, 调出选单,见手册):

<body>

代码块的更多见手册。(指南也有)

把时间戳向前移动一周

C-c . 调出日历,然后 S-UP 即可在日历中移动,见此回答

把标题变成列表

C-c - 即可(反过来是 C-c * ),见此回答

剪切并拷贝整个子树

C-c C-x C-wC-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 开关,见手册

img

移动整个子树

M-UPM-DOWN (移动一行是 M-S-UPM-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-dhttps://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搜索,见手册

RSS Feeds

https://orgmode.org/manual/RSS-Feeds.html

原文地址:http://www.cnblogs.com/frank3215/p/16812575.html

1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长! 2. 分享目的仅供大家学习和交流,请务用于商业用途! 3. 如果你也有好源码或者教程,可以到用户中心发布,分享有积分奖励和额外收入! 4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解! 5. 如有链接无法下载、失效或广告,请联系管理员处理! 6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需! 7. 如遇到加密压缩包,默认解压密码为"gltf",如遇到无法解压的请联系管理员! 8. 因为资源和程序源码均为可复制品,所以不支持任何理由的退款兑现,请斟酌后支付下载 声明:如果标题没有注明"已测试"或者"测试可用"等字样的资源源码均未经过站长测试.特别注意没有标注的源码不保证任何可用性