Bump :lang org
Kungsgeten/org-brain@671db0e -> Kungsgeten/org-brain@e703ae0 abo-abo/org-download@67b3c74 -> abo-abo/org-download@42ac361 astahlman/ob-async@80a30b9 -> astahlman/ob-async@de1cd6c bastibe/org-journal@a2728e2 -> bastibe/org-journal@e7c51c4 emacs-straight/org-mode@220f2b0 -> emacs-straight/org-mode@e2bb605 fuxialexander/org-pdftools@8cc15bb -> fuxialexander/org-pdftools@3c2b9a4 hakimel/reveal.js@15815ef) -> hakimel/reveal.js@e09437f) integral-dw/org-superstar-mode@94f35c2 -> integral-dw/org-superstar-mode@7f83636 kaushalmodi/ox-hugo@75b849e -> kaushalmodi/ox-hugo@95723cd oer/org-re-reveal@7fe39d5 -> oer/org-re-reveal@29f565f org-roam/org-roam@c33867e -> org-roam/org-roam@87d7c07 Closes #4034; company-org-roam is now deprecated, completions are provided via capf instead. Co-authored-by: Jethro Kuan <jethrokuan95@gmail.com>
This commit is contained in:
parent
8a45b4671e
commit
ea575e3a8d
3 changed files with 19 additions and 32 deletions
|
@ -39,12 +39,15 @@
|
|||
:config
|
||||
(setq org-roam-directory
|
||||
(file-name-as-directory
|
||||
(expand-file-name (or org-roam-directory "roam")
|
||||
org-directory))
|
||||
(file-truename
|
||||
(expand-file-name (or org-roam-directory "roam")
|
||||
org-directory)))
|
||||
org-roam-db-location (concat org-roam-directory ".org-roam.db")
|
||||
org-roam-verbose nil ; https://youtu.be/fn4jIlFwuLU
|
||||
;; Make org-roam buffer sticky; i.e. don't replace it when opening a
|
||||
;; file with an *-other-window command.
|
||||
org-roam-buffer-window-parameters '((no-delete-other-windows . t))
|
||||
org-roam-completion-everywhere t
|
||||
org-roam-completion-system
|
||||
(cond ((featurep! :completion helm) 'helm)
|
||||
((featurep! :completion ivy) 'ivy)
|
||||
|
@ -65,27 +68,11 @@
|
|||
(org-roam-buffer--get-create)))))
|
||||
|
||||
;; Hide the mode line in the org-roam buffer, since it serves no purpose. This
|
||||
;; makes it easier to distinguish among other org buffers.
|
||||
(add-hook 'org-roam-buffer-prepare-hook #'hide-mode-line-mode)
|
||||
|
||||
;; REVIEW Fixes an unhelpful "wrong-type-argument: stringp" error which occurs
|
||||
;; if sqlite3 isn't installed. Remove this once addressed upstream.
|
||||
(defadvice! +org-fail-gracefully-when-sqlite-is-absent-a (orig-fn &rest args)
|
||||
:around #'org-roam-mode
|
||||
(let ((emacsql-sqlite3-executable
|
||||
(or (bound-and-true-p emacsql-sqlite3-executable)
|
||||
"sqlite3")))
|
||||
(apply orig-fn args))))
|
||||
;; makes it easier to distinguish from other org buffers.
|
||||
(add-hook 'org-roam-buffer-prepare-hook #'hide-mode-line-mode))
|
||||
|
||||
|
||||
;; Since the org module lazy loads org-protocol (waits until an org URL is
|
||||
;; detected), we can safely chain `org-roam-protocol' to it.
|
||||
(use-package! org-roam-protocol
|
||||
:after org-protocol)
|
||||
|
||||
|
||||
(use-package! company-org-roam
|
||||
:when (featurep! :completion company)
|
||||
:after org-roam
|
||||
:config
|
||||
(set-company-backend! 'org-mode '(company-org-roam company-yasnippet company-dabbrev)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue