[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master e5b93f6: Inhibit lines in doc-view-mode
From: |
Lars Ingebrigtsen |
Subject: |
master e5b93f6: Inhibit lines in doc-view-mode |
Date: |
Sun, 2 May 2021 05:28:54 -0400 (EDT) |
branch: master
commit e5b93f6c1487d5ff3dbc03cb6feb4bdaef47990a
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Inhibit lines in doc-view-mode
* lisp/doc-view.el (doc-view-mode): Inhibit line number modes
(bug#47974). Change suggested by Gregory Heytings.
---
lisp/doc-view.el | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lisp/doc-view.el b/lisp/doc-view.el
index 0ae2293..a0ffcac 100644
--- a/lisp/doc-view.el
+++ b/lisp/doc-view.el
@@ -1913,6 +1913,11 @@ toggle between displaying the document or editing it as
text.
(unless (memq doc-view-doc-type '(ps))
(setq-local require-final-newline nil))
+ ;; These modes will just display "1", so they're not very useful
+ ;; in this mode.
+ (setq-local global-linum-mode nil
+ display-line-numbers-mode nil)
+
(doc-view-make-safe-dir doc-view-cache-directory)
;; Handle compressed files, remote files, files inside archives
(setq-local doc-view--buffer-file-name
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master e5b93f6: Inhibit lines in doc-view-mode,
Lars Ingebrigtsen <=