From: Lars Ingebrigtsen Date: Sun, 2 May 2021 09:28:30 +0000 (+0200) Subject: Inhibit lines in doc-view-mode X-Git-Tag: emacs-28.0.90~2651 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e5b93f6c1487d5ff3dbc03cb6feb4bdaef47990a;p=emacs.git Inhibit lines in doc-view-mode * lisp/doc-view.el (doc-view-mode): Inhibit line number modes (bug#47974). Change suggested by Gregory Heytings. --- diff --git a/lisp/doc-view.el b/lisp/doc-view.el index 0ae22934b2c..a0ffcac9f80 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