summaryrefslogtreecommitdiffstats
path: root/emacs.d
diff options
context:
space:
mode:
Diffstat (limited to 'emacs.d')
-rw-r--r--emacs.d/init.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el
index d450177..5d6488b 100644
--- a/emacs.d/init.el
+++ b/emacs.d/init.el
@@ -319,9 +319,21 @@
;; PDF
+(pdf-tools-install)
+
(add-hook 'doc-view-mode-hook 'auto-revert-mode)
(add-hook 'pdf-view-mode-hook 'auto-revert-mode)
+(spaceline-define-segment line-column
+ "The current line and column numbers."
+ (if (eq major-mode 'pdf-view-mode)
+ ;; Show page number and count for PDF documents
+ (concat (number-to-string (pdf-view-current-page))
+ "/"
+ (number-to-string (pdf-cache-number-of-pages)))
+ mode-line-position
+ "%l:%2c"))
+
;; Associations
(add-to-list 'auto-mode-alist '("\\.pl\\'" . prolog-mode))