powerline
powerline copied to clipboard
Pdf-tools page number fix
Fixed pdf-tools page number in default and center theme, viz. https://github.com/milkypostman/powerline/issues/88. The fix is little bit of hacky, but I didnt see different way without partial rewrite (but I am quite new to elisp, so..). I thought about creating a new theme, so the default is hackless and readable, but Ill leave that up to you.
Btw: Add this code to .emacs to remove broken buffer position percentage which is auto-enabled in pdf-tools.
add-hook 'pdf-tools-enabled-hook (lambda ()
(pdf-tools-disable-minor-modes
'(pdf-misc-size-indication-minor-mode))))
Oh, list splicing. Not very pretty, no. I can't figure a better way to do it either though. Thanks for looking into it!
probably won't merge something so specific. there has to be a better way to do this. how does the normal modeline do it?