From: Gauthier Segay <gauthier.segay@gmail.com>
To: help-gnu-emacs@gnu.org
Cc: monnier@iro.umontreal.ca, markus.triska@gmx.at
Subject: UI glitch with text-scale-increase / text-scale-decrease with linum / nlinum
Date: Sun, 8 Feb 2015 20:42:13 +0100 [thread overview]
Message-ID: <CA+JVFq8JZ9ko6v5S1fYBM6jGouqtmULnwU329-j=GtT5bTBZNQ@mail.gmail.com> (raw)
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.
next reply other threads:[~2015-02-08 19:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-08 19:42 Gauthier Segay [this message]
2015-02-09 14:57 ` UI glitch with text-scale-increase / text-scale-decrease with linum / nlinum Stefan Monnier
2015-02-09 15:58 ` Gauthier Segay
2015-02-09 17:01 ` Stefan Monnier
2015-02-09 17:22 ` Gauthier Segay
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+JVFq8JZ9ko6v5S1fYBM6jGouqtmULnwU329-j=GtT5bTBZNQ@mail.gmail.com' \
--to=gauthier.segay@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=markus.triska@gmx.at \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.