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
22
init.el
22
init.el
|
@ -488,7 +488,7 @@
|
||||||
|
|
||||||
(use-package org-capture
|
(use-package org-capture
|
||||||
:after org
|
:after org
|
||||||
:bind ("C-c n" . org-capture)
|
:bind ("C-c o n" . org-capture)
|
||||||
:custom (org-capture-templates
|
:custom (org-capture-templates
|
||||||
'(("t" "TODO" entry
|
'(("t" "TODO" entry
|
||||||
(file+olp "tasks.org.gpg" "Inbox")
|
(file+olp "tasks.org.gpg" "Inbox")
|
||||||
|
@ -497,19 +497,20 @@
|
||||||
(file+olp "calendar/email.org.gpg" "Inbox")
|
(file+olp "calendar/email.org.gpg" "Inbox")
|
||||||
"%i" :immediate-finish t))))
|
"%i" :immediate-finish t))))
|
||||||
|
|
||||||
(use-package org-roam
|
(if (executable-find "sqlite3")
|
||||||
|
(use-package org-roam
|
||||||
:if (package-installed-p 'org-roam)
|
:if (package-installed-p 'org-roam)
|
||||||
:after org
|
:after org
|
||||||
:defines org-roam-directory
|
:defines org-roam-directory
|
||||||
:functions org-roam-db-autosync-mode
|
:functions org-roam-db-autosync-mode
|
||||||
:bind (("C-c r i" . org-roam-node-insert)
|
:bind (("C-c o r i" . org-roam-node-insert)
|
||||||
("C-c r f" . org-roam-node-find)
|
("C-c o r f" . org-roam-node-find)
|
||||||
("C-c r n" . org-roam-capture)
|
("C-c o r n" . org-roam-capture)
|
||||||
("C-c r j" . org-roam-dailies-capture-today)
|
("C-c o r j" . org-roam-dailies-capture-today)
|
||||||
("M-g j" . org-roam-dailies-goto-today)
|
("M-g j" . org-roam-dailies-goto-today)
|
||||||
("M-g C-j" . org-roam-dailies-goto-date)
|
("M-g C-j" . org-roam-dailies-goto-date)
|
||||||
:map org-mode-map
|
:map org-mode-map
|
||||||
("C-c r b" . org-roam-buffer-toggle))
|
("C-c o r b" . org-roam-buffer-toggle))
|
||||||
:custom
|
:custom
|
||||||
(org-roam-directory (expand-file-name "roam" org-directory))
|
(org-roam-directory (expand-file-name "roam" org-directory))
|
||||||
(org-roam-completion-everywhere nil)
|
(org-roam-completion-everywhere nil)
|
||||||
|
@ -530,18 +531,19 @@
|
||||||
(window-parameters . ((no-delete-other-windows . t)))))
|
(window-parameters . ((no-delete-other-windows . t)))))
|
||||||
(org-roam-db-autosync-mode +1))
|
(org-roam-db-autosync-mode +1))
|
||||||
|
|
||||||
(use-package org-roam-dailies
|
(use-package org-roam-dailies
|
||||||
:after org-roam
|
:after org-roam
|
||||||
:custom
|
:custom
|
||||||
(org-roam-dailies-directory "./")
|
(org-roam-dailies-directory "./")
|
||||||
(org-roam-dailies-capture-templates
|
(org-roam-dailies-capture-templates
|
||||||
'(("d" "default" entry
|
'(("d" "default" entry
|
||||||
"* %?"
|
"* %?"
|
||||||
:target (file+datetree "journal.org.gpg" week)))))
|
:target (file+datetree "journal.org.gpg" week))))))
|
||||||
|
|
||||||
(use-package org-agenda
|
(use-package org-agenda
|
||||||
:after (org appt)
|
: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)
|
:hook (org-agenda-finalize . org-agenda-to-appt)
|
||||||
:custom
|
:custom
|
||||||
(org-agenda-span 'day)
|
(org-agenda-span 'day)
|
||||||
|
|
Loading…
Reference in a new issue