commit 32673bd971e4668916afa53378b7239dea72cde2
parent e7111ed9b4e992cd678f921b4a1b4523e4b3299e
Author: andsy10 <andsy1016@gmail.com>
Date: Sun, 16 Aug 2026 10:58:49 +0800
Add game tracking org-todo-keywords and rename agenda file
Diffstat:
4 files changed, 29 insertions(+), 16 deletions(-)
diff --git a/lisp/init-base.el b/lisp/init-base.el
@@ -53,7 +53,8 @@
(if *is-android*
(add-to-list 'recentf-exclude "~/storage/shared/my-org-note/journal/.*\\.org\\'")
(add-to-list 'recentf-exclude "~/org/my-org-note/journal/.*\\.org\\'")
- (add-to-list 'recentf-exclude "~/org/my-org-note/20260509T232442==agenda--all-my-todos__org\\.org"))
+ (add-to-list 'recentf-exclude "~/org/my-org-note/20260509T232442==agenda--all-my-todos\\.org")
+ (add-to-list 'recentf-exclude "~/org/my-org-note/20260810T233455==agenda--all-about-game__game\\.org"))
(add-to-list 'recentf-exclude "~/.emacs.d/emms/history")
(add-to-list 'recentf-exclude "~/.emacs.d/bookmarks")))
diff --git a/lisp/init-kbd-func.el b/lisp/init-kbd-func.el
@@ -134,8 +134,7 @@ otherwise toggle global-jinx-mode."
(message "No journal for today yet")))
(defun my-denote-open-metanote ()
- "Open denote metanote in
-`~/org/my-org-note/20260508T220745==metanote--all-my-metanotes__org.org'"
+ "Open denote metanote in org directory"
(interactive)
(find-file
(concat org-directory "/20260508T220745==metanote--all-my-metanotes__org.org")))
diff --git a/lisp/init-org.el b/lisp/init-org.el
@@ -57,10 +57,13 @@
;; todo keywords
(setq org-todo-keywords
(quote ((sequence "TODO(t)" "SOMEDAY(S)" "STARTED(s)" "WAITING(w)" "|" "DONE(d!/!)" "CANCELLED(c@/!)")
- (sequence "IDKY(i)" "|" "KNOWN(k)" "CANCELLED(c@/!)"))))
+ (sequence "IDKY(i)" "|" "KNOWN(k)" "CANCELLED(c@/!)")
+ (sequence "GAME(g)" "|" "PLAYED(p)"))))
;; agenda
- (setq org-agenda-files `(,(concat org-directory "/20260509T232442==agenda--all-my-todos__org.org")))
+ (setq org-agenda-files
+ `(,(concat org-directory "/20260509T232442==agenda--all-my-todos.org")
+ ,(concat org-directory "/20260810T233455==agenda--all-about-game__game.org")))
(setq org-agenda-span 'day)
(setq org-agenda-skip-function-global
@@ -176,12 +179,16 @@
'((:auto-ts t)))))))
("qS" "SOMEDAYs"
((org-ql-block '(todo "SOMEDAY")
- ((org-ql-block-header "SOMEDAYs")
- (org-super-agenda-groups
- '((:auto-ts t)))))))
+ ((org-ql-block-header "SOMEDAYs")))))
("qs" "STARTEDs"
((org-ql-block '(todo "STARTED")
- ((org-ql-block-header "STARTEDs")
+ ((org-ql-block-header "STARTEDs")))))
+ ("qg" "GAMEs"
+ ((org-ql-block '(todo "GAME")
+ ((org-ql-block-header "GAMEs")))))
+ ("qp" "PLAYEDs"
+ ((org-ql-block '(todo "PLAYED")
+ ((org-ql-block-header "Closed TODOs")
(org-super-agenda-groups
'((:auto-ts t)))))))
("qt" "TODOs sort by start time"
@@ -200,13 +207,15 @@
(:name "priority = C" :priority "C")
(:name "other priority" :priority< "C")
(:name "someday" :todo "SOMEDAY")
- (:name "I dont know yet" :todo "IDKY"))))))))))
+ (:name "I dont know yet" :todo "IDKY")
+ (:name "game" :todo "GAME"))))))))))
;; capture
(use-package org-capture
:straight nil
:config
- (setq my-org-capture-file (concat org-directory "/20260509T232442==agenda--all-my-todos__org.org"))
+ (setq my-org-capture-file (concat org-directory "/20260509T232442==agenda--all-my-todos.org"))
+ (setq my-org-capture-game-file (concat org-directory "/20260810T233455==agenda--all-about-game__game.org"))
(setq org-capture-templates
`(("t" "TODO" entry
(file+headline ,my-org-capture-file "Something to do")
@@ -219,7 +228,10 @@
"* SOMEDAY %<%m-%d> %?\n%T" :empty-lines 1)
("i" "IDKY" entry
(file+headline ,my-org-capture-file "Something to know")
- "* IDKY %<%m-%d> %?\n%T" :empty-lines 1))))
+ "* IDKY %<%m-%d> %?\n%T" :empty-lines 1)
+ ("g" "GAME" entry
+ (file+headline ,my-org-capture-game-file "Games")
+ "* GAME %?\n%T" :empty-lines 1))))
;; presentation
(use-package org-tree-slide)
diff --git a/lisp/init-terminal.el b/lisp/init-terminal.el
@@ -85,10 +85,11 @@
:init
(setq recentf-max-saved-items 30)
:config
- (if *is-android*
- (add-to-list 'recentf-exclude "~/storage/shared/my-org-note/journal/.*\\.org\\'")
- (add-to-list 'recentf-exclude "~/org/my-org-note/journal/.*\\.org\\'")
- (add-to-list 'recentf-exclude "~/org/my-org-note/20260509T232442==agenda--all-my-todos__org\\.org")))
+ (add-to-list 'recentf-exclude "~/org/my-org-note/journal/.*\\.org\\'")
+ (add-to-list 'recentf-exclude "~/org/my-org-note/20260509T232442==agenda--all-my-todos\\.org")
+ (add-to-list 'recentf-exclude "~/org/my-org-note/20260810T233455==agenda--all-about-game__game\\.org")
+ (add-to-list 'recentf-exclude "~/.emacs.d/emms/history")
+ (add-to-list 'recentf-exclude "~/.emacs.d/bookmarks"))
(use-package savehist
:hook