branch: elpa/denote-refs
commit 69cdec1c3d444dc55de38a9cb0abdfa106884b0d
Author: Akib Azmain Turja <[email protected]>
Commit: Akib Azmain Turja <[email protected]>
Support plain text notes
* denote-refs.el (denote-refs--render): Support 'text-mode'.
---
denote-refs.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/denote-refs.el b/denote-refs.el
index d482448f65..dc58ac0cd6 100644
--- a/denote-refs.el
+++ b/denote-refs.el
@@ -86,7 +86,9 @@ the key is the absolute path.")
('links denote-refs--links)
('backlinks denote-refs--backlinks))))
(pcase major-mode
- ('org-mode
+ ;; There's no comment syntax in `text-mode', so just follow
+ ;; `org-mode'.
+ ((or 'org-mode 'text-mode)
;; Insert references count.
(insert (if (eq refs 'not-ready)
(format "# ... %s\n" (if (eq section 'links)