unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* UI glitch with text-scale-increase / text-scale-decrease with linum / nlinum
@ 2015-02-08 19:42 Gauthier Segay
  2015-02-09 14:57 ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: Gauthier Segay @ 2015-02-08 19:42 UTC (permalink / raw)
  To: help-gnu-emacs; +Cc: monnier, markus.triska

I've setup this
http://ergoemacs.org/emacs/emacs_mouse_wheel_config.html

;; on Linux, make Control+wheel do increase/decrease font size
(global-set-key (kbd "<C-mouse-4>") 'text-scale-increase)
(global-set-key (kbd "<C-mouse-5>") 'text-scale-decrease)

The issue is that linum or nlinum doesn't notice the change, the line
number gutter doesn'adjust it's width.

The work around is to disable and enable again those modes.

How can this be done in the above script?

Can this somehow be handled by linum/nlinum modes whenever the
text-scale or font is changed?

Thanks for your help.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-02-09 17:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-08 19:42 UI glitch with text-scale-increase / text-scale-decrease with linum / nlinum Gauthier Segay
2015-02-09 14:57 ` Stefan Monnier
2015-02-09 15:58   ` Gauthier Segay
2015-02-09 17:01     ` Stefan Monnier
2015-02-09 17:22       ` Gauthier Segay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).