Skip to content

Instantly share code, notes, and snippets.

@kdmsnr
Last active September 3, 2021 05:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kdmsnr/88021bf229fc448bb92d185d966b0b65 to your computer and use it in GitHub Desktop.
Save kdmsnr/88021bf229fc448bb92d185d966b0b65 to your computer and use it in GitHub Desktop.
;;; obsidianにあわせてwikinameの挙動を変更したい
(defun howm-keyword-search-create (title)
(let ((fn (car (remove nil (mapcar (lambda (x)
(if (string=
(file-name-nondirectory x)
(concat (replace-regexp-in-string "<<< " "" title) ".md"))
x)
) (mapcar #'howm-view-item-filename (howm-all-items)))))))
(if fn
(howm-page-open fn)
(progn
;; original
"create new memo <<< TITLE."
(howm-create-file-with-title title)
(message "New keyword.")))
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment