From 34137d1bbb9cee1a9d6c8533067cfcde8214ea6b Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Fri, 29 Mar 2019 18:25:40 +0900 Subject: [PATCH] Add my-privnotes --- emacs.el | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/emacs.el b/emacs.el index 7fb0d02..9716a92 100644 --- a/emacs.el +++ b/emacs.el @@ -1782,6 +1782,19 @@ ARG is num to show, or defaults to 7." "") "memo.txt")))) +(set (defvar my-privnotes-path nil + "My privnotes repository path.") + (expand-file-name "~/my/privnotes")) + +(defun my-privnotes-readme (path) + "Open my privnotes." + (interactive (list + (read-file-name "Privnotes: " + (expand-file-name (format-time-string "%Y%m%d_") + my-privnotes-path)))) + (find-file (expand-file-name "README.md" path))) +(define-key ctl-x-map "p" 'my-privnotes-readme) + (set (defvar my-rgrep-alist nil "Alist of rgrep command. Each element is in the form like (NAME SEXP COMMAND), where SEXP returns the