(refactor): refactor org-roam-capture (#1355)

This commit is contained in:
Jethro Kuan
2020-12-22 21:57:02 +08:00
committed by GitHub
parent 777f6d23ec
commit 48e195dd82
3 changed files with 14 additions and 18 deletions

View File

@ -982,17 +982,6 @@ Return nil if the file does not exist."
(org-roam--org-roam-file-p (buffer-file-name it)))
(buffer-list)))
(defun org-roam--file-path-from-id (id)
"Return path for Org-roam file with ID."
(let* ((ext (or (car org-roam-file-extensions)
"org"))
(file (concat id "." ext)))
(expand-file-name
(if org-roam-encrypt-files
(concat file ".gpg")
file)
org-roam-directory)))
;;; org-roam-backlinks-mode
(define-minor-mode org-roam-backlinks-mode
"Minor mode for the `org-roam-buffer'.