From 42aa5a42061c0523b4feeac4b5643d1a2aed3a42 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Mon, 14 Mar 2022 21:50:38 +0800 Subject: Update config of orgmode (emacs) --- .emacs.d/lisp/init-misc.el | 1 + .emacs.d/lisp/init-org-agenda.el | 3 ++- .emacs.d/lisp/init-org.el | 9 +++++++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.emacs.d/lisp/init-misc.el b/.emacs.d/lisp/init-misc.el index 97bb0b4..b4239c9 100644 --- a/.emacs.d/lisp/init-misc.el +++ b/.emacs.d/lisp/init-misc.el @@ -23,6 +23,7 @@ `((".*" "~/.emacs.d/backups/" t))) (setq-default fill-column 72) +(setq-default indent-tabs-mode nil) (setq-default recentf-max-saved-items 1024 recentf-exclude `("/tmp/")) diff --git a/.emacs.d/lisp/init-org-agenda.el b/.emacs.d/lisp/init-org-agenda.el index b583b96..9e520a0 100644 --- a/.emacs.d/lisp/init-org-agenda.el +++ b/.emacs.d/lisp/init-org-agenda.el @@ -41,7 +41,8 @@ (defvar gx/org-agenda-block--attention '(org-ql-block '(and (not (todo "WAITING")) (or (tags "URGENT" "FLAGGED") - (priority "A"))) + (priority "A")) + (not (done))) ((org-ql-block-header "ATTENTION"))) "A block showing tasks require attention.") diff --git a/.emacs.d/lisp/init-org.el b/.emacs.d/lisp/init-org.el index 64e9e2f..0ead7cf 100644 --- a/.emacs.d/lisp/init-org.el +++ b/.emacs.d/lisp/init-org.el @@ -34,6 +34,10 @@ (kbd "r") 'org-refile + ;; toggle + (kbd "l") 'org-toggle-link-display + (kbd "b") 'org-roam-buffer-toggle + ;; set (kbd "ss") 'org-schedule (kbd "sd") 'org-deadline @@ -88,7 +92,7 @@ ;; tags (setq org-tags-exclude-from-inheritance - '("PROJECT" "UNWILLING")) + '("PROJECT")) (setq org-tag-alist '((:startgroup . nil) ("@work" . ?w) ("@home" . ?h) ("errants" . ?e) (:endgroup . nil) @@ -96,7 +100,8 @@ ("FLAGGED" . ?f) ("URGENT" . ?u) ("UNWILLING" . ?x) - ("PROJECT" . ?p))) + ("PROJECT" . ?p) + ("REFILE" . ?r))) ;; refile (setq org-refile-targets '((nil :maxlevel . 9) -- cgit v1.2.3