all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.