guix-devel
[Top][All Lists]
Advanced

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

Helpful imenu matches


From: John Soo
Subject: Helpful imenu matches
Date: Wed, 18 Dec 2019 14:58:55 +0000

Hi Guix,

I know there are a lot of emacs users here.
I wanted to share this snippet I find really helpful when working with Guile:

(defvar guile-imenu-generic-_expression_
  (cons '("Public" "^(define-public\\s-+(?\\(\\sw+\\)" 1)
        scheme-imenu-generic-_expression_)
  "Imenu generic _expression_ for Guile modes.  See `imenu-generic-_expression_'.")
(add-hook
 'scheme-mode-hook
 (lambda ()
   (setq-local imenu-generic-_expression_ guile-imenu-generic-_expression_)))

If you use ido, helm, or counsel for imenu, this really helps find definitions much faster.
I don't really know if there is an upstream to send this to.
If you know, please let me know.

- John

reply via email to

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