spacemacs org-mode配置GTD

  • org-mode的GTD
  • 来自spacemacs大神-子龙山人的配置个人可根据需求修改
  • spacemacs的org-mode快捷键
  • Org-mode GTD视频-by子龙山人
  • 参考文档

org-mode的GTD

GTD,getting thing done。时间管理的方法。
org-mode的GTD,传说很强大,可以随时记录任务。需要了解的有:
1. org-capture;随时记录一个任务。采用下文的配置,可以任务组分类。
org-capture是临时加入一个任务。所有的任务查看,是利用org-agenda命令。
2. 任务,可以设置
- TODO/DONE属性
- 优先级ABC(方便分类查找)
- tag标签(方便分类查找)
- schedule日期
- deadline日期

来自spacemacs大神-子龙山人的配置(个人可根据需求修改)

简单描述:
1. 所有org-capture的目录都在~/org-notes里;分为
- notes.org
- gtd.org
- journal.org
- snippet.org
2. org-capture快捷键是c-c c ;执行后,显示命令:
spacemacs org-mode配置GTD_第1张图片
3. 第2步骤的命令,按c-c c-c之后完成,并保存在~/org-notes相应文件里。
4. c-c a 查看org-agenda;多了 w 任务安排 等。方便查看任务分类。
spacemacs org-mode配置GTD_第2张图片

(defun dotspacemacs/user-config ()
  "Configuration function for user code.
This function is called at the very end of Spacemacs initialization after
layers configuration.
This is the place where most of your configurations should be done. Unless it is
explicitly specified that a variable should be set before a package is loaded,
you should place your code here."
  (setq tramp-ssh-controlmaster-options
        "-o ControlMaster=auto -o ControlPath='tramp.%%C' -o ControlPersist=no")
  ;; define the refile targets
  (defvar org-agenda-dir "" "gtd org files location")
  (setq-default org-agenda-dir "~/org-notes")
  (setq org-agenda-file-note (expand-file-name "notes.org" org-agenda-dir))
  (setq org-agenda-file-gtd (expand-file-name "gtd.org" org-agenda-dir))
  (setq org-agenda-file-journal (expand-file-name "journal.org" org-agenda-dir))
  (setq org-agenda-file-code-snippet (expand-file-name "snippet.org" org-agenda-dir))
  (setq org-default-notes-file (expand-file-name "gtd.org" org-agenda-dir))
  (setq org-agenda-files (list org-agenda-dir))

  (with-eval-after-load 'org-agenda
    (define-key org-agenda-mode-map (kbd "P") 'org-pomodoro)
    (spacemacs/set-leader-keys-for-major-mode 'org-agenda-mode
      "." 'spacemacs/org-agenda-transient-state/body)
    )
  ;; the %i would copy the selected text into the template
  ;;http://www.howardism.org/Technical/Emacs/journaling-org.html
  ;;add multi-file journal
  (setq org-capture-templates
        '(("t" "Todo" entry (file+headline org-agenda-file-gtd "Workspace")
           "* TODO [#B] %?\n %i\n"
           :empty-lines 1)
          ("n" "notes" entry (file+headline org-agenda-file-note "Quick notes")
           "* %?\n %i\n %U"
           :empty-lines 1)
          ("b" "Blog Ideas" entry (file+headline org-agenda-file-note "Blog Ideas")
           "* TODO [#B] %?\n %i\n %U"
           :empty-lines 1)
          ("s" "Code Snippet" entry
           (file org-agenda-file-code-snippet)
           "* %?\t%^g\n#+BEGIN_SRC %^{language}\n\n#+END_SRC")
          ("w" "work" entry (file+headline org-agenda-file-gtd "Cocos2D-X")
           "* TODO [#A] %?\n %i\n %U"
           :empty-lines 1)
          ("c" "Chrome" entry (file+headline org-agenda-file-note "Quick notes")
           "* TODO [#C] %?\n %(zilongshanren/retrieve-chrome-current-tab-url)\n %i\n %U"
           :empty-lines 1)
          ("l" "links" entry (file+headline org-agenda-file-note "Quick notes")
           "* TODO [#C] %?\n %i\n %a \n %U"
           :empty-lines 1)
          ("j" "Journal Entry"
           entry (file+datetree org-agenda-file-journal)
           "* %?"
           :empty-lines 1)))

  ;;An entry without a cookie is treated just like priority ' B '.
  ;;So when create new task, they are default 重要且紧急
  (setq org-agenda-custom-commands
        '(
          ("w" . "任务安排")
          ("wa" "重要且紧急的任务" tags-todo "+PRIORITY=\"A\"")
          ("wb" "重要且不紧急的任务" tags-todo "-Weekly-Monthly-Daily+PRIORITY=\"B\"")
          ("wc" "不重要且紧急的任务" tags-todo "+PRIORITY=\"C\"")
          ("b" "Blog" tags-todo "BLOG")
          ("p" . "项目安排")
          ("pw" tags-todo "PROJECT+WORK+CATEGORY=\"cocos2d-x\"")
          ("pl" tags-todo "PROJECT+DREAM+CATEGORY=\"zilongshanren\"")
          ("W" "Weekly Review"
           ((stuck "") ;; review stuck projects as designated by org-stuck-projects (tags-todo "PROJECT") ;; review all projects (assuming you use todo keywords to designate projects) ))))

  )

spacemacs的org-mode快捷键

  1. 在org-mode下,即打开.org文件的时候。可以使用lead-key , ;对应的是当前模式下的常见命令;很方便。常见的有不少。
  2. 在非org-mode下,使用的org命令前缀是 c-c ;常见的就3个。

Org-mode GTD视频-by子龙山人

Spacemacs Rocks: Org-mode GTD—在线播放—优酷网,视频高清在线观看
http://v.youku.com/v_show/id_XMTM2MjM5OTU5Ng==.html?spm=a2hzp.8253869.0.0.DqiSC6&from=y1.7-2

参考文档

使用Org Capture来收集灵感 - 简书
http://www.jianshu.com/p/d308e17a48d1

你可能感兴趣的:(emacs)