1
0
Fork 0

fix: only display line numbers in prog-mode

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2023-08-05 23:57:06 -07:00
parent a69ca013be
commit dfd4587e67
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47
2 changed files with 1 additions and 5 deletions

View file

@ -5,10 +5,6 @@
;; PDF Tools
(pdf-tools-install)
(add-hook 'doc-view-mode (lambda () (display-line-numbers-mode -1)))
(add-hook 'doc-view-mode 'pdf-view-mode)
(add-hook 'pdf-view-mode (lambda () (display-line-numbers-mode -1)))
(add-hook 'pdf-view-mode (lambda () (line-number-mode -1)))
(defun pdf-download-and-view (&optional url filename)
"Download and view the PDF given by its URL as FILENAME."