Move org related binds under C-c o keymap
Check for sqlite3 executable before enabling org-roam
This commit is contained in:
parent
d62c620880
commit
fb2329bfa6
18
init.el
18
init.el
|
@ -488,7 +488,7 @@
|
|||
|
||||
(use-package org-capture
|
||||
:after org
|
||||
:bind ("C-c n" . org-capture)
|
||||
:bind ("C-c o n" . org-capture)
|
||||
:custom (org-capture-templates
|
||||
'(("t" "TODO" entry
|
||||
(file+olp "tasks.org.gpg" "Inbox")
|
||||
|
@ -497,19 +497,20 @@
|
|||
(file+olp "calendar/email.org.gpg" "Inbox")
|
||||
"%i" :immediate-finish t))))
|
||||
|
||||
(if (executable-find "sqlite3")
|
||||
(use-package org-roam
|
||||
:if (package-installed-p 'org-roam)
|
||||
:after org
|
||||
:defines org-roam-directory
|
||||
:functions org-roam-db-autosync-mode
|
||||
:bind (("C-c r i" . org-roam-node-insert)
|
||||
("C-c r f" . org-roam-node-find)
|
||||
("C-c r n" . org-roam-capture)
|
||||
("C-c r j" . org-roam-dailies-capture-today)
|
||||
:bind (("C-c o r i" . org-roam-node-insert)
|
||||
("C-c o r f" . org-roam-node-find)
|
||||
("C-c o r n" . org-roam-capture)
|
||||
("C-c o r j" . org-roam-dailies-capture-today)
|
||||
("M-g j" . org-roam-dailies-goto-today)
|
||||
("M-g C-j" . org-roam-dailies-goto-date)
|
||||
:map org-mode-map
|
||||
("C-c r b" . org-roam-buffer-toggle))
|
||||
("C-c o r b" . org-roam-buffer-toggle))
|
||||
:custom
|
||||
(org-roam-directory (expand-file-name "roam" org-directory))
|
||||
(org-roam-completion-everywhere nil)
|
||||
|
@ -537,11 +538,12 @@
|
|||
(org-roam-dailies-capture-templates
|
||||
'(("d" "default" entry
|
||||
"* %?"
|
||||
:target (file+datetree "journal.org.gpg" week)))))
|
||||
:target (file+datetree "journal.org.gpg" week))))))
|
||||
|
||||
(use-package org-agenda
|
||||
:after (org appt)
|
||||
:bind (("C-c a" . org-agenda))
|
||||
:bind (("C-c o a" . org-agenda)
|
||||
("C-c o C-a" . org-agenda-list))
|
||||
:hook (org-agenda-finalize . org-agenda-to-appt)
|
||||
:custom
|
||||
(org-agenda-span 'day)
|
||||
|
|
Loading…
Reference in a new issue