Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add customization option to open note file of current session after kill session #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion org-noter.el
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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.
Expand Down