branch: externals/denote commit d66312e51735c9f11f09c1bec0971650fd8be40a Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Fix regression in file extension caused by f57e9c5 --- denote-link.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/denote-link.el b/denote-link.el index 9608adb9cc..7ab015d722 100644 --- a/denote-link.el +++ b/denote-link.el @@ -50,8 +50,8 @@ (defun denote-link--file-type-format (file) "Return link pattern based on FILE format." (pcase (file-name-extension file) - ("markdown" denote-link--link-format-markdown) - ("text" denote-link--link-format-text) + ("md" denote-link--link-format-markdown) + ("txt" denote-link--link-format-text) (_ denote-link--link-format-org))) ; Includes backup files. Maybe we can remove them? (defun denote-link--format-link (file pattern)