Config: add org-ql config, fix coding system of ripgrep
This commit is contained in:
@@ -155,10 +155,9 @@
|
||||
(global-set-key (kbd "C-c a") 'org-agenda)
|
||||
|
||||
(when *is-windows*
|
||||
(with-eval-after-load 'org
|
||||
(setq org-agenda-files '("h:/emacs/hugo/this-is-my-blog/all-blog.org"
|
||||
"h:/emacs/my-org-daily/"
|
||||
"h:/emacs/my-org-note/"))))
|
||||
(setq org-agenda-files '("h:/emacs/hugo/this-is-my-blog/all-blog.org"
|
||||
"h:/emacs/my-org-daily/"
|
||||
"h:/emacs/my-org-note/")))
|
||||
(when *is-mac*
|
||||
(with-eval-after-load 'org
|
||||
(setq org-agenda-files '("~/org/my-org-daily"))))
|
||||
@@ -173,6 +172,25 @@
|
||||
;; org-ql
|
||||
(use-package org-ql)
|
||||
|
||||
(setq org-ql-views
|
||||
'(("tags: emacs category:note"
|
||||
:buffers-files org-agenda-files
|
||||
:query (and (tags "emacs") (category "note"))
|
||||
:sort date)
|
||||
|
||||
("tags: org"
|
||||
:buffers-files org-agenda-files
|
||||
:query (tags "org"))
|
||||
|
||||
("all important todos"
|
||||
:buffers-files org-agenda-files
|
||||
:query (and (not (done)) (todo))
|
||||
:super-groups
|
||||
((:name "priority = A" :priority "A")
|
||||
(:name "priority = B" :priority "B")
|
||||
(:name "started" :todo "STARTED")
|
||||
(:name "someday" :todo "SOMEDAY")))))
|
||||
|
||||
;; org-super-agenda 配置
|
||||
(use-package org-super-agenda
|
||||
:config
|
||||
@@ -214,6 +232,7 @@
|
||||
(setq org-tag-alist '(
|
||||
("scheme" . ?s)
|
||||
("emacs" . ?e)
|
||||
("org" . ?o)
|
||||
("linux" . ?l)
|
||||
("computer-stuff" . ?c)
|
||||
("philosophy" . ?p)
|
||||
@@ -221,6 +240,8 @@
|
||||
("gamestudies" . ?G)
|
||||
))
|
||||
|
||||
;; (setq org-tags-exclude-from-inheritance '())
|
||||
|
||||
;; capture模板
|
||||
(when *is-windows*
|
||||
(defvar my-org-capture-temp-title "" "Temporarily store the org-capture filename.")
|
||||
@@ -233,15 +254,20 @@
|
||||
(format-time-string "%Y%m%d")
|
||||
my-org-capture-temp-title))))
|
||||
"#+title: %(symbol-value 'my-org-capture-temp-title)
|
||||
#+created: %U
|
||||
#+date: %U
|
||||
#+category: %^{Category|none|plan|book|article|note|insight}
|
||||
#+filetags: %^g
|
||||
|
||||
* %(symbol-value 'my-org-capture-temp-title)
|
||||
* %(symbol-value 'my-org-capture-temp-title) %^g
|
||||
%U
|
||||
:PROPERTIES:
|
||||
:END:
|
||||
|
||||
%?
|
||||
|
||||
|
||||
# Local Variables:
|
||||
# org-use-tag-inheritance: nil
|
||||
# End:
|
||||
"
|
||||
:jump-to-captured t))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user