From: Stefan Kangas <stefankangas@gmail.com>
To: "Gerd Möllmann" <gerd.moellmann@gmail.com>,
"Emacs Devel" <emacs-devel@gnu.org>
Subject: Re: Tip: tty mode-line popup menus
Date: Mon, 9 Dec 2024 17:59:18 -0500 [thread overview]
Message-ID: <CADwFkmmOpPjbAFmcRUKNkQtGi6DT8a7imJNgj4JHjy43otoESg@mail.gmail.com> (raw)
In-Reply-To: <m2cyi1709h.fsf@gmail.com>
Gerd Möllmann <gerd.moellmann@gmail.com> writes:
> I don't like the tty behavior. It is fiddly with a track pad, which I
> normally use, leading to inadvertent menu selections. Furthermore,
> keyboard operation of the menu seems impossible.
>
> To fix this, I've added this in my init.el:
>
> (defun my-fix-mode-line-map (map)
> (let* ((down-mouse (kbd "<mode-line> <down-mouse-1>"))
> (mouse (kbd "<mode-line> <mouse-1>"))
> (def (lookup-key map down-mouse)))
> (when def
> (define-key map down-mouse nil)
> (define-key map mouse def))))
>
> (my-fix-mode-line-map mode-line-major-mode-keymap)
> (my-fix-mode-line-map mode-line-minor-mode-keymap)
How about adding a defcustom for this behavior?
I guess many users are on laptops with trackpads these days, and would
find that convenient.
next prev parent reply other threads:[~2024-12-09 22:59 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-09 8:01 Tip: tty mode-line popup menus Gerd Möllmann
2024-12-09 10:40 ` Jean Louis
2024-12-09 14:58 ` Eli Zaretskii
2024-12-09 14:45 ` Eli Zaretskii
2024-12-09 15:15 ` Gerd Möllmann
2024-12-09 16:24 ` Eli Zaretskii
2024-12-09 21:54 ` Petteri Hintsanen
2024-12-10 3:32 ` Gerd Möllmann
2024-12-09 22:59 ` Stefan Kangas [this message]
2024-12-10 6:14 ` Gerd Möllmann
2024-12-10 9:32 ` Gerd Möllmann
2024-12-10 10:09 ` Gerd Möllmann
2024-12-10 13:15 ` Gerd Möllmann
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=CADwFkmmOpPjbAFmcRUKNkQtGi6DT8a7imJNgj4JHjy43otoESg@mail.gmail.com \
--to=stefankangas@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=gerd.moellmann@gmail.com \
/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.