branch: elpa/pdf-tools commit db093ce922a6dd0205b8d23dc827d35ca130d22f Author: Vedang Manerikar <ved.maneri...@gmail.com> Commit: Vedang Manerikar <ved.maneri...@gmail.com>
Use org-mode as the default mode for annotation edits This makes it simpler / more Emacs-y to take notes in annotations that can then be exported. --- lisp/pdf-annot.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/pdf-annot.el b/lisp/pdf-annot.el index b28e15ffcd..86b483ed3d 100644 --- a/lisp/pdf-annot.el +++ b/lisp/pdf-annot.el @@ -1423,7 +1423,7 @@ by a header." (let ((mode (if (funcall pdf-annot-latex-string-predicate (pdf-annot-get a 'contents)) 'latex-mode - 'text-mode))) + 'org-mode))) (unless (derived-mode-p mode) (funcall mode)))) "A function for setting up, e.g. the major-mode, of the edit buffer. @@ -1433,7 +1433,7 @@ is about to be edited in this buffer. The default value turns on `latex-mode' if `pdf-annot-latex-string-predicate' returns non-nil on the -annotation's contents and otherwise `text-mode'." +annotation's contents and otherwise `org-mode'." :type 'function) (defcustom pdf-annot-edit-contents-display-buffer-action