aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-03-14 21:50:38 +0800
committerGuangxiong Lin <[email protected]>2022-03-14 21:50:38 +0800
commit42aa5a42061c0523b4feeac4b5643d1a2aed3a42 (patch)
tree658cd9541d74a33cb8e015f4e4666a06a8548cbc
parentdab137d6d5d68859ae193fa15ad5e6a97b010893 (diff)
downloaddotfiles-42aa5a42061c0523b4feeac4b5643d1a2aed3a42.tar.gz
dotfiles-42aa5a42061c0523b4feeac4b5643d1a2aed3a42.tar.bz2
dotfiles-42aa5a42061c0523b4feeac4b5643d1a2aed3a42.zip
Update config of orgmode (emacs)
-rw-r--r--.emacs.d/lisp/init-misc.el1
-rw-r--r--.emacs.d/lisp/init-org-agenda.el3
-rw-r--r--.emacs.d/lisp/init-org.el9
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 "<leader>r") 'org-refile
+ ;; toggle
+ (kbd "<leader><SPC>l") 'org-toggle-link-display
+ (kbd "<leader><SPC>b") 'org-roam-buffer-toggle
+
;; set
(kbd "<leader>ss") 'org-schedule
(kbd "<leader>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)