From 1ba535a0af601af2b1014ca99fc68b91992ae341 Mon Sep 17 00:00:00 2001 From: Yanghao Xie Date: Fri, 15 Feb 2019 10:03:55 +0800 Subject: [PATCH] add customization option to open note file of current session after kill session --- org-noter.el | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/org-noter.el b/org-noter.el index 266d878..98a77ca 100644 --- a/org-noter.el +++ b/org-noter.el @@ -191,6 +191,11 @@ The title used will be the default one." :group 'org-noter :type 'boolean) +(defcustom org-noter-open-note-file-after-kill-session nil + "If non-nil, note file of current session will be opened after kill the session." + :group 'org-noter + :type 'boolean) + (defface org-noter-no-notes-exist-face '((t :foreground "chocolate" @@ -1412,7 +1417,10 @@ want to kill." (progn (delete-other-windows) (set-frame-parameter nil 'name nil)) - (delete-frame frame)))))) + (delete-frame frame))) + + (if org-noter-open-note-file-after-kill-session + (find-file (org-noter--session-notes-file-path session)))))) (defun org-noter-create-skeleton () "Create notes skeleton with the PDF outline or annotations.