Config: add init-org-refile.el , fix dirvish quick access path
This commit is contained in:
@@ -159,8 +159,8 @@
|
||||
"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"))))
|
||||
(setq org-agenda-files '("~/org/my-org-daily"
|
||||
"~/org/my-org-note/")))
|
||||
|
||||
(setq org-agenda-span 'day)
|
||||
|
||||
@@ -243,19 +243,23 @@
|
||||
;; (setq org-tags-exclude-from-inheritance '())
|
||||
|
||||
;; capture模板
|
||||
(when *is-windows*
|
||||
(defvar my-org-capture-temp-title "" "Temporarily store the org-capture filename.")
|
||||
(setq org-capture-templates
|
||||
'(("n" "New Note" plain
|
||||
(file (lambda ()
|
||||
(setq my-org-capture-temp-title (read-string "Filename (without .org): "))
|
||||
(expand-file-name (format "%s/%s-%s.org"
|
||||
"h:/emacs/my-org-note"
|
||||
(defvar my-org-capture-temp-title "" "Temporarily store the org-capture filename.")
|
||||
(setq org-capture-templates
|
||||
'(("n" "New Note" plain
|
||||
(file (lambda ()
|
||||
(setq my-org-capture-temp-title (read-string "Filename (without .org): "))
|
||||
(expand-file-name (if *is-windows*
|
||||
(format "%s/%s-%s.org"
|
||||
"h:/emacs/my-org-note/"
|
||||
(format-time-string "%Y%m%d")
|
||||
my-org-capture-temp-title)
|
||||
(format "%s/%s-%s.org"
|
||||
"~/org/my-org-note/"
|
||||
(format-time-string "%Y%m%d")
|
||||
my-org-capture-temp-title))))
|
||||
"#+title: %(symbol-value 'my-org-capture-temp-title)
|
||||
my-org-capture-temp-title)))))
|
||||
"#+title: %(symbol-value 'my-org-capture-temp-title)
|
||||
#+date: %U
|
||||
#+category: %^{Category|none|plan|book|article|note|insight}
|
||||
#+category: %^{Category|none|project|book|article|note|insight}
|
||||
|
||||
* %(symbol-value 'my-org-capture-temp-title) %^g
|
||||
%U
|
||||
@@ -269,13 +273,7 @@
|
||||
# org-use-tag-inheritance: nil
|
||||
# End:
|
||||
"
|
||||
:jump-to-captured t))))
|
||||
|
||||
(when *is-mac*
|
||||
(setq org-capture-templates
|
||||
'(("t" "Todo" entry (file+headline "~/org/some-orgs/todos.org" "Workspace")
|
||||
"* TODO [#B] %?\n %i\n %U"
|
||||
:empty-lines 1))))
|
||||
:jump-to-captured t)))
|
||||
|
||||
(global-set-key (kbd "C-c o c") 'org-capture)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user