powerline icon indicating copy to clipboard operation
powerline copied to clipboard

Pdf-tools page number fix

Open fm4d opened this issue 9 years ago • 2 comments

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))))

fm4d avatar Aug 06 '15 04:08 fm4d

Oh, list splicing. Not very pretty, no. I can't figure a better way to do it either though. Thanks for looking into it!

andersjohansson avatar Aug 06 '15 11:08 andersjohansson

probably won't merge something so specific. there has to be a better way to do this. how does the normal modeline do it?

milkypostman avatar Oct 07 '17 15:10 milkypostman