[Org Roam] Configure org-roam-dailies
This commit is contained in:
parent
bd8f9f30e7
commit
c998ff3beb
2 changed files with 19 additions and 5 deletions
17
config.org
17
config.org
|
@ -1370,15 +1370,30 @@ Source: [[https://www.orgroam.com][orgroam.com]]
|
||||||
(direction . right)
|
(direction . right)
|
||||||
(window-width . 0.33)
|
(window-width . 0.33)
|
||||||
(window-height . fit-window-to-buffer)))
|
(window-height . fit-window-to-buffer)))
|
||||||
|
(setq org-roam-dailies-directory "daily/")
|
||||||
|
(setq org-roam-dailies-capture-templates
|
||||||
|
'(("c" "clock" entry "* %<%H:%M> %?"
|
||||||
|
:if-new (file+head "%<%Y-%m-%d>.org" "#+title: %<%Y-%m-%d>\n"))
|
||||||
|
("n" "note" entry "* %?"
|
||||||
|
:if-new (file+head "%<%Y-%m-%d>.org" "#+title: %<%Y-%m-%d>\n"))
|
||||||
|
("t" "todo" entry "* TODO %?"
|
||||||
|
:if-new (file+head "%<%Y-%m-%d>.org" "#+title: %<%Y-%m-%d>\n"))))
|
||||||
(require 'org-roam-protocol)
|
(require 'org-roam-protocol)
|
||||||
|
(require 'org-roam-dailies)
|
||||||
(org-roam-db-autosync-mode)
|
(org-roam-db-autosync-mode)
|
||||||
:bind (("C-c r f" . org-roam-node-find)
|
:bind (("C-c r f" . org-roam-node-find)
|
||||||
("C-c r i" . org-roam-node-insert)
|
("C-c r i" . org-roam-node-insert)
|
||||||
("C-c r b" . org-roam-buffer-toggle)
|
("C-c r b" . org-roam-buffer-toggle)
|
||||||
("C-c r c" . org-roam-capture)
|
("C-c r c" . org-roam-capture)
|
||||||
("C-c r g" . org-roam-graph)
|
("C-c r g" . org-roam-graph)
|
||||||
|
:map org-mode-map
|
||||||
|
("C-M-i" . completion-at-point)
|
||||||
:map org-roam-mode-map
|
:map org-roam-mode-map
|
||||||
("[mouse-1]" . #'org-roam-visit-thing)))
|
("[mouse-1]" . #'org-roam-visit-thing)
|
||||||
|
:map org-roam-dailies-map
|
||||||
|
("Y" . org-roam-dailies-capture-yesterday)
|
||||||
|
("T" . org-roam-dailies-capture-tomorrow))
|
||||||
|
:bind-keymap ("C-c r d" . org-roam-dailies-map))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Org Roam Bibtex
|
** Org Roam Bibtex
|
||||||
|
|
|
@ -52,13 +52,13 @@
|
||||||
(sit-for 1)
|
(sit-for 1)
|
||||||
(split-window-horizontally)
|
(split-window-horizontally)
|
||||||
(other-window 1)
|
(other-window 1)
|
||||||
(org-journal-open-current-journal-file))))
|
(org-roam-dailies-goto-today))))
|
||||||
|
|
||||||
(defun mmk2410/tab-bar-run-journal ()
|
(defun mmk2410/tab-bar-run-journal ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(mmk2410/tab-bar-switch-or-create
|
(mmk2410/tab-bar-switch-or-create
|
||||||
"Journal"
|
"Journal"
|
||||||
#'org-journal-open-current-journal-file))
|
#'org-roam-dailies-goto-today))
|
||||||
|
|
||||||
(defun mmk2410/tab-bar-run-projects ()
|
(defun mmk2410/tab-bar-run-projects ()
|
||||||
(interactive)
|
(interactive)
|
||||||
|
@ -91,5 +91,4 @@
|
||||||
("q" nil))
|
("q" nil))
|
||||||
|
|
||||||
(provide 'mmk2410-tab-bar-helpers)
|
(provide 'mmk2410-tab-bar-helpers)
|
||||||
|
;;; mmk2410-tab-bar-helpers.el ends here
|
||||||
;;; tab-bar-helpers.el ends here
|
|
||||||
|
|
Loading…
Reference in a new issue