PRF:20180826 Be productive with Org-mode.md

@lujun9972
This commit is contained in:
Xingyu.Wang 2019-03-19 18:12:50 +08:00
parent c9c1fdb849
commit 0de030a9c7

View File

@ -1,46 +1,45 @@
[#]: collector: (lujun9972) [#]: collector: (lujun9972)
[#]: translator: (lujun9972) [#]: translator: (lujun9972)
[#]: reviewer: ( ) [#]: reviewer: (wxy)
[#]: publisher: ( ) [#]: publisher: ( )
[#]: url: ( ) [#]: url: ( )
[#]: subject: (Be productive with Org-mode) [#]: subject: (Be productive with Org-mode)
[#]: via: (https://www.badykov.com/emacs/2018/08/26/be-productive-with-org-mode/) [#]: via: (https://www.badykov.com/emacs/2018/08/26/be-productive-with-org-mode/)
[#]: author: (Ayrat Badykov https://www.badykov.com) [#]: author: (Ayrat Badykov https://www.badykov.com)
高效使用 Org-mode 高效使用 Org 模式
====== ======
![org-mode-collage][1] ![org-mode-collage][1]
### 简介 ### 简介
在我 [前篇关于 Emacs 的文章中 ][2] 我提到了 [Org-mode][3],一个笔记管理工具和组织工具。文本,我将会描述一下我日常的 Org-mode 使用案例。 在我 [前一篇关于 Emacs 的文章中][2] 我提到了 <ruby>[Org 模式][3]<rt>Org-mode</rt></ruby>,这是一个笔记管理工具和组织工具。本文中,我将会描述一下我日常的 Org 模式使用案例。
### 笔记和代办列表 ### 笔记和代办列表
首先而且最重要的是Org-mode 是一个管理笔记和待办列表的工具Org-mode 的所有工具都聚焦于使用纯文本文件记录笔记。我使用 Org-mode 管理多种笔记。 首先而且最重要的是Org 模式是一个管理笔记和待办列表的工具Org 模式的所有工具都聚焦于使用纯文本文件记录笔记。我使用 Org 模式管理多种笔记。
#### 一般性笔记 #### 一般性笔记
Org-mode 最基本的应用场景就是以笔记的形式记录下你想记住的事情。比如,下面是我正在学习的笔记内容: Org 模式最基本的应用场景就是以笔记的形式记录下你想记住的事情。比如,下面是我正在学习的笔记内容:
``` ```
* Learn * Learn
** Emacs LISP ** Emacs LISP
*** Plan *** Plan
- [ ] Read best practices - [ ] Read best practices
- [ ] Finish reading Emacs Manual - [ ] Finish reading Emacs Manual
- [ ] Finish Exercism Exercises - [ ] Finish Exercism Exercises
- [ ] Write a couple of simple plugins - [ ] Write a couple of simple plugins
- Notification plugin - Notification plugin
*** Resources *** Resources
https://www.gnu.org/software/emacs/manual/html_node/elisp/index.html https://www.gnu.org/software/emacs/manual/html_node/elisp/index.html
http://exercism.io/languages/elisp/about http://exercism.io/languages/elisp/about
[[http://batsov.com/articles/2011/11/30/the-ultimate-collection-of-emacs-resources/][The Ultimate Collection of Emacs Resources]] [[http://batsov.com/articles/2011/11/30/the-ultimate-collection-of-emacs-resources/][The Ultimate Collection of Emacs Resources]]
** Rust gamedev ** Rust gamedev
*** Study [[https://github.com/SergiusIW/gate][gate]] 2d game engine with web assembly support *** Study [[https://github.com/SergiusIW/gate][gate]] 2d game engine with web assembly support
@ -55,7 +54,7 @@ Org-mode 最基本的应用场景就是以笔记的形式记录下你想记住
![notes][5] ![notes][5]
在这个简单的例子中,你能看到 Org-mode 的一些功能: 在这个简单的例子中,你能看到 Org 模式的一些功能:
- 笔记允许嵌套 - 笔记允许嵌套
- 链接 - 链接
@ -67,81 +66,79 @@ Org-mode 最基本的应用场景就是以笔记的形式记录下你想记住
``` ```
* [[elisp:(org-projectile-open-project%20"mana")][mana]] [3/9] * [[elisp:(org-projectile-open-project%20"mana")][mana]] [3/9]
:PROPERTIES: :PROPERTIES:
:CATEGORY: mana :CATEGORY: mana
:END: :END:
** DONE [[file:~/Development/mana/apps/blockchain/lib/blockchain/contract/create_contract.ex::insufficient_gas_before_homestead%20=][fix this check using evm.configuration]] ** DONE [[file:~/Development/mana/apps/blockchain/lib/blockchain/contract/create_contract.ex::insufficient_gas_before_homestead%20=][fix this check using evm.configuration]]
CLOSED: [2018-08-08 Ср 09:14] CLOSED: [2018-08-08 Ср 09:14]
[[https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2.md][eip2]]: [[https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2.md][eip2]]:
If contract creation does not have enough gas to pay for the final gas fee for If contract creation does not have enough gas to pay for the final gas fee for
adding the contract code to the state, the contract creation fails (i.e. goes out-of-gas) adding the contract code to the state, the contract creation fails (i.e. goes out-of-gas)
rather than leaving an empty contract. rather than leaving an empty contract.
** DONE Upgrade Elixir to 1.7. ** DONE Upgrade Elixir to 1.7.
CLOSED: [2018-08-08 Ср 09:14] CLOSED: [2018-08-08 Ср 09:14]
** TODO [#A] Difficulty tests ** TODO [#A] Difficulty tests
** TODO [#C] Upgrage to OTP 21 ** TODO [#C] Upgrage to OTP 21
** DONE [#A] EIP150 ** DONE [#A] EIP150
CLOSED: [2018-08-14 Вт 21:25] CLOSED: [2018-08-14 Вт 21:25]
*** DONE operation cost changes *** DONE operation cost changes
CLOSED: [2018-08-08 Ср 20:31] CLOSED: [2018-08-08 Ср 20:31]
*** DONE 1/64th for a call and create *** DONE 1/64th for a call and create
CLOSED: [2018-08-14 Вт 21:25] CLOSED: [2018-08-14 Вт 21:25]
** TODO [#C] Refactor interfaces ** TODO [#C] Refactor interfaces
** TODO [#B] Caching for storage during execution ** TODO [#B] Caching for storage during execution
** TODO [#B] Removing old merkle trees ** TODO [#B] Removing old merkle trees
** TODO do not calculate cost twice ** TODO do not calculate cost twice
* [[elisp:(org-projectile-open-project%20".emacs.d")][.emacs.d]] [1/3] * [[elisp:(org-projectile-open-project%20".emacs.d")][.emacs.d]] [1/3]
:PROPERTIES: :PROPERTIES:
:CATEGORY: .emacs.d :CATEGORY: .emacs.d
:END: :END:
** TODO fix flycheck issues (emacs config) ** TODO fix flycheck issues (emacs config)
** TODO use-package for fetching dependencies ** TODO use-package for fetching dependencies
** DONE clean configuration ** DONE clean configuration
CLOSED: [2018-08-26 Вс 11:48] CLOSED: [2018-08-26 Вс 11:48]
``` ```
它看起来是这样的: 它看起来是这样的:
![project-todos][7] ![project-todos][7]
本例中你能看到更多的 Org mode 功能: 本例中你能看到更多的 Org 模式的功能:
- todo 列表具有 `TODO``DONE` 两个状态。你还可以定义自己的状态 (`WAITING` 等) - 代办列表具有 `TODO``DONE` 两个状态。你还可以定义自己的状态 (`WAITING` 等)
- 关闭的事项有 `CLOSED` 时间戳 - 关闭的事项有 `CLOSED` 时间戳
- 有些事项有优先级 - ABC。 - 有些事项有优先级 - A、B、C
- 链接可以指向文件内部 (`[[file:~/。..]`) - 链接可以指向文件内部 (`[[file:~/。..]`)
#### 捕获模板 #### 捕获模板
正如 Org-mode 的文档中所描述的capture 可以在不怎么干扰你工作流的情况下让你快速存储笔记。 正如 Org 模式的文档中所描述的,捕获可以在不怎么干扰你工作流的情况下让你快速存储笔记。
我配置了许多捕获模板,可以帮我快速记录想要记住的事情。 我配置了许多捕获模板,可以帮我快速记录想要记住的事情。
``` ```
(setq org-capture-templates (setq org-capture-templates
'(("t" "Todo" entry (file+headline "~/Dropbox/org/todo.org" "Todo soon") '(("t" "Todo" entry (file+headline "~/Dropbox/org/todo.org" "Todo soon")
"* TODO %? \n %^t") "* TODO %? \n %^t")
("i" "Idea" entry (file+headline "~/Dropbox/org/ideas.org" "Ideas") ("i" "Idea" entry (file+headline "~/Dropbox/org/ideas.org" "Ideas")
"* %? \n %U") "* %? \n %U")
("e" "Tweak" entry (file+headline "~/Dropbox/org/tweaks.org" "Tweaks") ("e" "Tweak" entry (file+headline "~/Dropbox/org/tweaks.org" "Tweaks")
"* %? \n %U") "* %? \n %U")
("l" "Learn" entry (file+headline "~/Dropbox/org/learn.org" "Learn") ("l" "Learn" entry (file+headline "~/Dropbox/org/learn.org" "Learn")
"* %? \n") "* %? \n")
("w" "Work note" entry (file+headline "~/Dropbox/org/work.org" "Work") ("w" "Work note" entry (file+headline "~/Dropbox/org/work.org" "Work")
"* %? \n") "* %? \n")
("m" "Check movie" entry (file+headline "~/Dropbox/org/check.org" "Movies") ("m" "Check movie" entry (file+headline "~/Dropbox/org/check.org" "Movies")
"* %? %^g") "* %? %^g")
("n" "Check book" entry (file+headline "~/Dropbox/org/check.org" "Books") ("n" "Check book" entry (file+headline "~/Dropbox/org/check.org" "Books")
"* %^{book name} by %^{author} %^g"))) "* %^{book name} by %^{author} %^g")))
``` ```
做书本记录时我需要记下它的名字和作者,做电影记录时我需要记下标签,等等。 做书本记录时我需要记下它的名字和作者,做电影记录时我需要记下标签,等等。
### 规划 ### 规划
Org-mode 的另一个超棒的功能是你可以用它来作日常规划。让我们来看一个例子: Org 模式的另一个超棒的功能是你可以用它来作日常规划。让我们来看一个例子:
![schedule][8] ![schedule][8]
@ -149,7 +146,7 @@ Org-mode 的另一个超棒的功能是你可以用它来作日常规划。让
#### 习惯 #### 习惯
根据 Org mode 的文档Org 能够跟踪一种特殊的代办事情,称为 “习惯”。当我想养成新的习惯时,我会将该功能与日常规划功能一起连用: 根据 Org 模式的文档Org 能够跟踪一种特殊的代办事情,称为 “习惯”。当我想养成新的习惯时,我会将该功能与日常规划功能一起连用:
![habits][9] ![habits][9]
@ -161,18 +158,15 @@ Org-mode 的另一个超棒的功能是你可以用它来作日常规划。让
![agenda][10] ![agenda][10]
### 更多 Org mode 功能 ### 更多 Org 模式的功能
+ 手机应用 ([Android][https://play.google.com/store/apps/detailsid=com.orgzly&hl=en][ios][https://itunes.apple.com/app/id1238649962])
+ [将 Org mode 文档导出为其他格式 ][https://orgmode.org/manual/Exporting.html](htmlmarkdownpdflatex etc)
+ 使用 [ledger][https://github.com/ledger/ledger-mode] [追踪财务状况 ][https://orgmode.org/worg/org-tutorials/weaving-a-budget.html]
+ 手机应用([Android](https://play.google.com/store/apps/detailsid=com.orgzly&hl=en)、[ios](https://itunes.apple.com/app/id1238649962])
+ [将 Org 模式文档导出为其他格式](https://orgmode.org/manual/Exporting.html)html、markdown、pdf、latex 等)
+ 使用 [ledger](https://github.com/ledger/ledger-mode) [追踪财务状况](https://orgmode.org/worg/org-tutorials/weaving-a-budget.html)
### 总结 ### 总结
本文我描述了 Org-mode 广泛功能中的一小部分,我每天都用它来提高工作效率,把时间花在重要的事情上。 本文我描述了 Org 模式广泛功能中的一小部分,我每天都用它来提高工作效率,把时间花在重要的事情上。
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
@ -182,7 +176,7 @@ via: https://www.badykov.com/emacs/2018/08/26/be-productive-with-org-mode/
作者:[Ayrat Badykov][a] 作者:[Ayrat Badykov][a]
选题:[lujun9972][b] 选题:[lujun9972][b]
译者:[lujun9972](https://github.com/lujun9972) 译者:[lujun9972](https://github.com/lujun9972)
校对:[校对者ID](https://github.com/校对者ID) 校对:[wxy](https://github.com/wxy)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出