Last active
September 3, 2021 05:26
-
-
Save kdmsnr/88021bf229fc448bb92d185d966b0b65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; 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