[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pdf-tools db093ce922 1/2: Use org-mode as the default mode
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pdf-tools db093ce922 1/2: Use org-mode as the default mode for annotation edits |
Date: |
Mon, 9 May 2022 16:59:01 -0400 (EDT) |
branch: elpa/pdf-tools
commit db093ce922a6dd0205b8d23dc827d35ca130d22f
Author: Vedang Manerikar <ved.manerikar@gmail.com>
Commit: Vedang Manerikar <ved.manerikar@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