aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/modes/init-org-mode.el
diff options
context:
space:
mode:
authorgxlin <[email protected]>2021-05-15 19:34:11 +0800
committergxlin <[email protected]>2021-05-23 20:59:42 +0800
commit6e95c977654e5e40ffa60b27fa9a31354a1f5997 (patch)
treeeb862003417e8d88aa0f24b5b9313677a026463b /.emacs.d/modes/init-org-mode.el
parentc7d4dc60a1827ad2ef4748239fe4276140631848 (diff)
downloaddotfiles-6e95c977654e5e40ffa60b27fa9a31354a1f5997.tar.gz
dotfiles-6e95c977654e5e40ffa60b27fa9a31354a1f5997.tar.bz2
dotfiles-6e95c977654e5e40ffa60b27fa9a31354a1f5997.zip
Add aria2 config
Diffstat (limited to '.emacs.d/modes/init-org-mode.el')
-rw-r--r--.emacs.d/modes/init-org-mode.el26
1 files changed, 22 insertions, 4 deletions
diff --git a/.emacs.d/modes/init-org-mode.el b/.emacs.d/modes/init-org-mode.el
index a542b2c..0644aa4 100644
--- a/.emacs.d/modes/init-org-mode.el
+++ b/.emacs.d/modes/init-org-mode.el
@@ -2,6 +2,7 @@
:after evil
:commands org-agenda
:config
+ (require 'org-tempo)
(setq org-directory "~/notes/")
(setq org-default-notes-file (concat org-directory "/inbox.org"))
(setq org-capture-templates
@@ -23,24 +24,41 @@
(evil-define-key 'normal org-mode-map
(kbd "TAB") 'org-cycle
(kbd "RET") 'org-open-at-point)
- (setq org-agenda-skip-deadline-prewarning-if-scheduled t)
- ; todo
+ ;; todo
(setq org-todo-keywords
'((sequence "TODO" "NEXT" "WAITING" "SOMEDAY" "PROJECT" "|" "DONE" "CANCELED")))
(setq org-log-done t)
- ; tags
+ ;; tags
(setq org-tag-alist '((:startgroup . nil)
("work" . ?w) ("home" . ?h) ("errants" . ?e)
(:endgroup . nil)
("@phone" . ?p)))
- ; org babel
+ ;; org babel
(org-babel-do-load-languages
'org-babel-load-languages
'((shell . t))))
+(use-package org-agenda
+ :ensure nil
+ :init
+ (setq org-agenda-dim-blocked-tasks nil)
+ (setq org-agenda-skip-deadline-prewarning-if-scheduled t)
+ (setq org-deadline-warning-days 10)
+ (setq org-agenda-compact-blocks t)
+ (setq org-agenda-custom-commands
+ '(("d" "Daily agenda and all TODOs"
+ ((tags "PRIORITY=\"A\""
+ ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done))
+ (org-agenda-overriding-header "High-priority unfinished tasks:")))
+ (agenda "" ((org-agenda-ndays-to-span 1)))
+ (alltodo ""
+ ((org-agenda-skip-function '(or (org-agenda-skip-if nil '(scheduled deadline))))
+ (org-agenda-overriding-header "All normal priority tasks:"))))))))
+
+
(use-package evil-org
:ensure t
:after (org evil)