Config: change some org-ql config.

This commit is contained in:
User
2026-04-20 06:28:49 +08:00
parent 8576ac275a
commit bc6eca261a
5 changed files with 20 additions and 23 deletions

View File

@@ -9,7 +9,7 @@
exec-path-form-shell gcmh hungry-delete marginalia multiple-cursors orderless exec-path-form-shell gcmh hungry-delete marginalia multiple-cursors orderless
restart-emacs smart-mode-line solarized-theme vertico)) restart-emacs smart-mode-line solarized-theme vertico))
'(safe-local-variable-values '(safe-local-variable-values
'((gptel-mode . t) '((eval when (fboundp 'rainbow-mode) (rainbow-mode 1)) (gptel-mode . t)
(eval progn (eval progn
(setq org-hugo-base-dir (setq org-hugo-base-dir
(if (eq system-type 'windows-nt) "h:/emacs/hugo/this-is-my-blog/" (if (eq system-type 'windows-nt) "h:/emacs/hugo/this-is-my-blog/"

View File

@@ -78,9 +78,10 @@ Disable jinx-mode if it's enable and global-jinx-mode is disable , otherwise tog
(org-cycle)) (org-cycle))
(defun consult-org-ripgrep () (defun consult-org-ripgrep ()
"Jump to org agenda files use consult-ripgrep." "Search in org files use consult-ripgrep."
(interactive) (interactive)
(consult-ripgrep org-agenda-files)) (consult-ripgrep (unless *is-windows*
'("~/org/my-org-note/" "~/org/hugo/this-is-my-blog/all-blog.org"))))
(defun org-journal-open-current-journal-file-delete-other-window() (defun org-journal-open-current-journal-file-delete-other-window()
"Call org-journal-open-current-journal-file and delete other window." "Call org-journal-open-current-journal-file and delete other window."

View File

@@ -54,7 +54,8 @@
;; o for org-mode ;; o for org-mode
(general-def (general-def
:prefix "C-c o" :prefix "C-c o"
"s" 'consult-notes "f" 'consult-notes
"s" 'consult-org-agenda
"g" 'consult-org-ripgrep "g" 'consult-org-ripgrep
"C" 'calendar "C" 'calendar
"c" 'org-capture "c" 'org-capture

View File

@@ -181,11 +181,6 @@
:query (and (tags "emacs") (category "note")) :query (and (tags "emacs") (category "note"))
:sort date) :sort date)
("tags: org"
:buffers-files org-agenda-files
:query (tags "org")
:super-groups ((:auto-property "CATEGORY")))
("group by time" ("group by time"
:buffers-files org-agenda-files :buffers-files org-agenda-files
:query (and (ts :to "today") (tags "root")) :query (and (ts :to "today") (tags "root"))
@@ -195,16 +190,7 @@
("group by category" ("group by category"
:buffers-files org-agenda-files :buffers-files org-agenda-files
:query (tags "root") :query (tags "root")
:super-groups ((:auto-property "CATEGORY"))) :super-groups ((:auto-property "CATEGORY"))))))
("all important todos"
:buffers-files org-agenda-files
:query (and (not (done)) (todo))
:super-groups
((:name "started" :todo "STARTED")
(:name "priority = A" :priority "A")
(:name "priority = B" :priority "B")
(:name "someday" :todo "SOMEDAY"))))))
;; org-super-agenda 配置 ;; org-super-agenda 配置
(use-package org-super-agenda (use-package org-super-agenda
@@ -242,7 +228,18 @@
((org-ql-block-header "TODOs") ((org-ql-block-header "TODOs")
(org-ql-sort '(start-time)) (org-ql-sort '(start-time))
(org-super-agenda-groups (org-super-agenda-groups
'((:auto-ts t))))))))) '((:auto-ts t)))))))
("qa" "all TODO entries"
((org-ql-block '(and (not (done)) (todo))
((org-ql-block-header "all TODOs")
(org-super-agenda-groups
'((:name "started" :todo "STARTED")
(:name "priority = A" :priority "A")
(:name "priority = B" :priority "B")
(:name "other priority" :priority< "B")
(:name "someday" :todo "SOMEDAY")
))))))))
(setq org-tag-alist '( (setq org-tag-alist '(
("scheme" . ?s) ("scheme" . ?s)

View File

@@ -263,9 +263,7 @@ targets."
(require 'init-jinx))) (require 'init-jinx)))
;; flycheck ;; flycheck
(use-package flycheck (use-package flycheck)
:init
(add-hook 'after-init-hook #'global-flycheck-mode))
(use-package flycheck-guile (use-package flycheck-guile
:hook (scheme-mode . (lambda () :hook (scheme-mode . (lambda ()