bug-recutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 0/1] Flymake, ElDoc and IMenu


From: Antoine Kalmbach
Subject: [PATCH 0/1] Flymake, ElDoc and IMenu
Date: Sun, 6 Dec 2020 14:20:54 +0200

So this is not as large as the previous patches for record selection, but in
terms of functionality offered it is pretty exciting!

These patches add

  * A Flymake backend for reporting errors live
  * ElDoc support
  * IMenu support

Flymake makes it easy to see errors directly without calling recfix or using the
compile command. Flymake comes bundled with Emacs so all you need to do is

(add-hook 'rec-mode-hook #'flymake-mode)

With ElDoc you can quickly see the type of the field you are on
if point is on a field, and there is a descriptor type for it. This is useful
for e.g. enums to see all the available types. That way you don't have to edit
the field in order to see all available variants. Enabling ElDoc is as simple as

(add-hook 'rec-mode-hook #'eldoc-mode)

IMenu adds whole-buffer navigation.  Hit `M-x imenu' to navigate the buffer 
using
imenu in the minibuffer, or `M-x imenu-list' to create a sidebar for the rec
buffer.  Each line in the menu uses the %key entry if available, and descriptors
can be used to see groupings of the records. IMenu can be used to jump to other 
record
types, it's not limited to the currently viewed record type.

Please test - there might be bugs!

Antoine Kalmbach (1):
  Flymake, ElDoc and IMenu support

 rec-mode.el | 139 ++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 135 insertions(+), 4 deletions(-)

-- 
2.24.3 (Apple Git-128)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]