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
restart-emacs smart-mode-line solarized-theme vertico))
'(safe-local-variable-values
'((gptel-mode . t)
'((eval when (fboundp 'rainbow-mode) (rainbow-mode 1)) (gptel-mode . t)
(eval progn
(setq org-hugo-base-dir
(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))
(defun consult-org-ripgrep ()
"Jump to org agenda files use consult-ripgrep."
"Search in org files use consult-ripgrep."
(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()
"Call org-journal-open-current-journal-file and delete other window."

View File

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

View File

@@ -181,11 +181,6 @@
:query (and (tags "emacs") (category "note"))
:sort date)
("tags: org"
:buffers-files org-agenda-files
:query (tags "org")
:super-groups ((:auto-property "CATEGORY")))
("group by time"
:buffers-files org-agenda-files
:query (and (ts :to "today") (tags "root"))
@@ -195,16 +190,7 @@
("group by category"
:buffers-files org-agenda-files
:query (tags "root")
: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"))))))
:super-groups ((:auto-property "CATEGORY"))))))
;; org-super-agenda 配置
(use-package org-super-agenda
@@ -242,7 +228,18 @@
((org-ql-block-header "TODOs")
(org-ql-sort '(start-time))
(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 '(
("scheme" . ?s)

View File

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