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
86
init.el
86
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,51 +497,53 @@
|
||||||
(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")
|
||||||
:if (package-installed-p 'org-roam)
|
(use-package org-roam
|
||||||
:after org
|
:if (package-installed-p 'org-roam)
|
||||||
:defines org-roam-directory
|
:after org
|
||||||
:functions org-roam-db-autosync-mode
|
:defines org-roam-directory
|
||||||
:bind (("C-c r i" . org-roam-node-insert)
|
:functions org-roam-db-autosync-mode
|
||||||
("C-c r f" . org-roam-node-find)
|
:bind (("C-c o r i" . org-roam-node-insert)
|
||||||
("C-c r n" . org-roam-capture)
|
("C-c o r f" . org-roam-node-find)
|
||||||
("C-c r j" . org-roam-dailies-capture-today)
|
("C-c o r n" . org-roam-capture)
|
||||||
("M-g j" . org-roam-dailies-goto-today)
|
("C-c o r j" . org-roam-dailies-capture-today)
|
||||||
("M-g C-j" . org-roam-dailies-goto-date)
|
("M-g j" . org-roam-dailies-goto-today)
|
||||||
:map org-mode-map
|
("M-g C-j" . org-roam-dailies-goto-date)
|
||||||
("C-c r b" . org-roam-buffer-toggle))
|
:map org-mode-map
|
||||||
:custom
|
("C-c o r b" . org-roam-buffer-toggle))
|
||||||
(org-roam-directory (expand-file-name "roam" org-directory))
|
:custom
|
||||||
(org-roam-completion-everywhere nil)
|
(org-roam-directory (expand-file-name "roam" org-directory))
|
||||||
(org-roam-node-display-template (concat
|
(org-roam-completion-everywhere nil)
|
||||||
"${title:*} "
|
(org-roam-node-display-template (concat
|
||||||
(propertize "${tags:24}" 'face 'org-tag)))
|
"${title:*} "
|
||||||
(org-roam-capture-templates '(("d" "default" plain "%?"
|
(propertize "${tags:24}" 'face 'org-tag)))
|
||||||
:target (file+head "${slug}.org" "#+title: ${title}\n")
|
(org-roam-capture-templates '(("d" "default" plain "%?"
|
||||||
:unnarrowed t)))
|
:target (file+head "${slug}.org" "#+title: ${title}\n")
|
||||||
:config
|
:unnarrowed t)))
|
||||||
(mkdir org-roam-directory t)
|
:config
|
||||||
(add-to-list 'display-buffer-alist
|
(mkdir org-roam-directory t)
|
||||||
'("\\*org-roam\\*"
|
(add-to-list 'display-buffer-alist
|
||||||
(display-buffer-in-side-window)
|
'("\\*org-roam\\*"
|
||||||
(side . right)
|
(display-buffer-in-side-window)
|
||||||
(slot . 0)
|
(side . right)
|
||||||
(window-width . 0.33)
|
(slot . 0)
|
||||||
(window-parameters . ((no-delete-other-windows . t)))))
|
(window-width . 0.33)
|
||||||
(org-roam-db-autosync-mode +1))
|
(window-parameters . ((no-delete-other-windows . t)))))
|
||||||
|
(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