roam: changes
This commit is contained in:
parent
70e56bfbaf
commit
ad762f9e92
59
roam.el
59
roam.el
@ -17,21 +17,62 @@
|
|||||||
;; "#+title: %<%Y-%m-%d>\n"))))
|
;; "#+title: %<%Y-%m-%d>\n"))))
|
||||||
(map! :leader
|
(map! :leader
|
||||||
:desc "Capture today" "n n" #'org-roam-dailies-capture-today)
|
:desc "Capture today" "n n" #'org-roam-dailies-capture-today)
|
||||||
(setq org-roam-directory (concat org-directory "roam/")
|
|
||||||
org-roam-completion-everywhere nil))
|
|
||||||
|
|
||||||
(after! org-download
|
(setq org-roam-capture-ref-templates
|
||||||
(setq org-download-screenshot-method "flameshot gui --raw > %s"))
|
'(("r" "reference" plain
|
||||||
|
"%?"
|
||||||
|
:target
|
||||||
|
(file+head
|
||||||
|
"references/${slug}.org"
|
||||||
|
"#+title: ${title}")
|
||||||
|
:unnarrowed t)))
|
||||||
|
(setq org-roam-directory org-directory
|
||||||
|
;; compares a file relative to `org-roam-directory'
|
||||||
|
org-roam-file-exclude-regexp '("logseq")
|
||||||
|
org-roam-completion-everywhere nil
|
||||||
|
org-roam-dailies-directory "journals/"))
|
||||||
|
|
||||||
|
(setq org-download-image-dir (expand-file-name "assets" org-directory))
|
||||||
|
(use-package! org-download
|
||||||
|
:commands
|
||||||
|
org-download-dnd
|
||||||
|
org-download-yank
|
||||||
|
org-download-screenshot
|
||||||
|
org-download-clipboard
|
||||||
|
org-download-dnd-base64
|
||||||
|
:init
|
||||||
|
;; HACK We add these manually so that org-download is truly lazy-loaded
|
||||||
|
(pushnew! dnd-protocol-alist
|
||||||
|
'("^\\(?:https?\\|ftp\\|file\\|nfs\\):" . org-download-dnd)
|
||||||
|
'("^data:" . org-download-dnd-base64))
|
||||||
|
(advice-add #'org-download-enable :override #'ignore)
|
||||||
|
|
||||||
|
:config
|
||||||
|
(setq org-download-method 'directory
|
||||||
|
;; org-download-heading-lvl nil
|
||||||
|
org-download-timestamp "_%Y%m%d_%H%M%S"
|
||||||
|
org-download-annotate-function (lambda (_link) "")
|
||||||
|
org-download-screenshot-method "flameshot gui --raw > %s"))
|
||||||
|
;; org-download-abbreviate-filename-function
|
||||||
|
;; (lambda (path)
|
||||||
|
;; (if (file-in-directory-p path org-download-image-dir)
|
||||||
|
;; (file-relative-name path org-download-image-dir)
|
||||||
|
;; path)))
|
||||||
|
;; (after! org-download
|
||||||
|
;; (setq org-download-method 'directory
|
||||||
|
;; ;; org-download-heading-lvl nil
|
||||||
|
;; ;; org-download-timestamp "_%Y%m%d_%H%M%S"
|
||||||
|
;; org-download-screenshot-method "flameshot gui --raw > %s"))
|
||||||
|
|
||||||
(after! citar
|
(after! citar
|
||||||
;; (setq citar-file-parser-functions
|
;; (setq citar-file-parser-functions
|
||||||
;; '(citar-file--parser-default
|
;; '(citar-file--parser-default
|
||||||
;; citar-file--parser-triplet))
|
;; citar-file--parser-triplet))
|
||||||
(setq citar-org-roam-capture-template-key "n")
|
;; (setq citar-org-roam-capture-template-key "n")
|
||||||
(setq! citar-library-paths '("~/Zotero" "~/Nextcloud/Calibre")
|
(setq! citar-library-paths '("~/Zotero" "~/Nextcloud/Calibre")
|
||||||
citar-notes-paths `(,(expand-file-name "reference" org-roam-directory))
|
citar-notes-paths (list (expand-file-name "references" org-roam-directory))
|
||||||
citar-bibliography `(,(expand-file-name "library.bib" org-roam-directory)
|
citar-bibliography (list (expand-file-name "library.bib" org-roam-directory)
|
||||||
,(expand-file-name "books.bib" org-roam-directory))))
|
(expand-file-name "books.bib" org-roam-directory))))
|
||||||
|
|
||||||
(after! citar-org-roam
|
(after! citar-org-roam
|
||||||
;; (citar-register-notes-source
|
;; (citar-register-notes-source
|
||||||
@ -43,7 +84,7 @@
|
|||||||
;; :create #'orb-citar-edit-note
|
;; :create #'orb-citar-edit-note
|
||||||
;; :annotate #'citar-org-roam--annotate))
|
;; :annotate #'citar-org-roam--annotate))
|
||||||
;; (setq citar-notes-source 'orb-citar-source)
|
;; (setq citar-notes-source 'orb-citar-source)
|
||||||
(setq citar-org-roam-subdir "reference"))
|
(setq citar-org-roam-subdir "references"))
|
||||||
|
|
||||||
;; insert drawings from my RM2
|
;; insert drawings from my RM2
|
||||||
(use-package! org-inline-pdf
|
(use-package! org-inline-pdf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user