[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
UI glitch with text-scale-increase / text-scale-decrease with linum / nl
From: |
Gauthier Segay |
Subject: |
UI glitch with text-scale-increase / text-scale-decrease with linum / nlinum |
Date: |
Sun, 8 Feb 2015 20:42:13 +0100 |
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.
- UI glitch with text-scale-increase / text-scale-decrease with linum / nlinum,
Gauthier Segay <=