From 05c4b8a4fa9e3de29db4ee11d0752d20e17035d5 Mon Sep 17 00:00:00 2001 From: Cori Barker Date: Mon, 9 Mar 2026 09:37:17 +0000 Subject: [emacs] added pdf-tools --- .emacs | 5 ++++- .emacs.custom.el | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.emacs b/.emacs index 3111232..b0b83ee 100644 --- a/.emacs +++ b/.emacs @@ -36,6 +36,10 @@ (global-set-key (kbd "C-c m s") 'magit-status) (global-set-key (kbd "C-c m l") 'magit-log) +;; pdf-tools +(rc/require 'pdf-tools) # NOTE M-x pdf-tools-install +(add-hook 'pdf-view-mode-hook (lambda () (display-line-numbers-mode -1))) + ;; compile (add-to-list 'display-buffer-alist '("\\*compilation\\*" @@ -46,7 +50,6 @@ ;; reload ~/.emacs (defun reload-init-file () - "Reload the Emacs init file." (interactive) (load-file "~/.emacs")) diff --git a/.emacs.custom.el b/.emacs.custom.el index 993786f..3c946c8 100644 --- a/.emacs.custom.el +++ b/.emacs.custom.el @@ -7,7 +7,8 @@ '(display-line-numbers-type 'relative) '(evil-undo-system 'undo-redo) '(inhibit-startup-screen t) - '(package-selected-packages nil)) + '(package-selected-packages '(dash-functional evil magit pdf-tools)) + '(truncate-lines t)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. -- cgit v1.2.3