Inhibit lines in doc-view-mode
* lisp/doc-view.el (doc-view-mode): Inhibit line number modes (bug#47974). Change suggested by Gregory Heytings.
This commit is contained in:
parent
ede24f8f97
commit
e5b93f6c14
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue