simple-modeline icon indicating copy to clipboard operation
simple-modeline copied to clipboard

How do I go about showing page number in pdf view mode?

Open simurgh9 opened this issue 4 years ago • 0 comments

I'd like to add page-number in the mode-line when looking at a pdf in pdf-view-mode from pdf tools package.

(format "%d/%d " (eval `(pdf-view-current-page))
      (pdf-cache-number-of-pages))

This returns what I want in the mode-line.

You might checkout the doom mode-line. It already has this number shown in the pdf mode I am referring to.

simurgh9 avatar Oct 28 '21 04:10 simurgh9