Fix: `pdf-view-current-page' is a macro in an optional dependency.

This commit is contained in:
Vincent Zhang 2019-01-16 04:29:35 +08:00
parent a99b3bfe10
commit cded14f2bb

View file

@ -2044,7 +2044,7 @@ mouse-1: Toggle Debug on Quit"
(doom-modeline-def-segment pdf-pages (doom-modeline-def-segment pdf-pages
(when (eq major-mode 'pdf-view-mode) (when (eq major-mode 'pdf-view-mode)
(format " P%d/%d " (format " P%d/%d "
(pdf-view-current-page) (eval `(pdf-view-current-page))
(pdf-cache-number-of-pages)))) (pdf-cache-number-of-pages))))