fix indents

This commit is contained in:
Jethro Kuan
2021-04-10 00:34:43 +08:00
parent 09b0d74359
commit 6f233363c8

View File

@ -154,8 +154,8 @@ This function is to be called in the Org-capture finalization process."
(org-with-point-at pos (org-with-point-at pos
(setq ref-lst (org-entry-get (point) "ROAM_REFS")) (setq ref-lst (org-entry-get (point) "ROAM_REFS"))
(setq ref-lst (if ref-lst (setq ref-lst (if ref-lst
(cl-pushnew ref-lst ref) (cl-pushnew (split-string-and-unquote ref-lst) ref)
(list ref))) (list ref)))
(org-set-property "ROAM_REFS" (combine-and-quote-strings ref-lst)))))) (org-set-property "ROAM_REFS" (combine-and-quote-strings ref-lst))))))
(defun org-roam-capture--finalize () (defun org-roam-capture--finalize ()
@ -378,7 +378,7 @@ TEMPLATES is a list of org-roam templates."
(mapcar (lambda (t) (mapcar (lambda (t)
(org-roam-capture--convert-template t props)) (org-roam-capture--convert-template t props))
(or templates org-roam-capture-templates))) (or templates org-roam-capture-templates)))
(org-roam-capture--info info)) (org-roam-capture--info info))
(when (and (not keys) (when (and (not keys)
(= (length org-capture-templates) 1)) (= (length org-capture-templates) 1))
(setq keys (caar org-capture-templates))) (setq keys (caar org-capture-templates)))