]> git.eshelyaron.com Git - emacs.git/commit
Rework eglot's mode-line
authorFelicián Németh <felician.nemeth@gmail.com>
Sat, 15 Jan 2022 17:51:36 +0000 (18:51 +0100)
committerJoão Távora <joaotavora@gmail.com>
Mon, 4 Apr 2022 09:32:22 +0000 (10:32 +0100)
commit2dad9298d9ba96510fb5f744959284ca46b71968
treeb85da2aa284b6059711bfacc623c91cea9d0030a
parentef0da9414e148cafef7443660ac90c571850b629
Rework eglot's mode-line

Mimic flymake by replacing the old menus of the mode-line with
"context menus".  List all usefull commands under the main menu
(eglot-menu-map), and commands related to LSP debugging under the
project menu (eglot-debug-map).

* eglot.el (eglot-read-documentation, eglot-customize): New
commands.
(eglot-mode-line-string): New defcustom.
(eglot-menu-map, eglot-debug-map,): New variables.
(eglot--mode-line-props): Rework to use eglot-menu-map and
eglot-debug-map.
(eglot--mode-line-format): Use eglot-mode-line-string.

GitHub-reference: close https://github.com/joaotavora/eglot/issues/792
lisp/progmodes/eglot.el