all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Helpful imenu matches
@ 2019-12-18 14:58 John Soo
  2019-12-18 15:37 ` Pierre Neidhardt
  0 siblings, 1 reply; 3+ messages in thread
From: John Soo @ 2019-12-18 14:58 UTC (permalink / raw)
  To: Guix-devel

[-- Attachment #1: Type: text/plain, Size: 661 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 910 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Helpful imenu matches
  2019-12-18 14:58 Helpful imenu matches John Soo
@ 2019-12-18 15:37 ` Pierre Neidhardt
  2019-12-18 16:16   ` John Soo
  0 siblings, 1 reply; 3+ messages in thread
From: Pierre Neidhardt @ 2019-12-18 15:37 UTC (permalink / raw)
  To: John Soo, Guix-devel

[-- Attachment #1: Type: text/plain, Size: 245 bytes --]

Hi John!

This snippet is very useful indeed!
I had reported the issue to Emacs upstream some time ago and recently (<
1 month) it got merged upstream!
So I think it should be in Emacs 27 :)

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Helpful imenu matches
  2019-12-18 15:37 ` Pierre Neidhardt
@ 2019-12-18 16:16   ` John Soo
  0 siblings, 0 replies; 3+ messages in thread
From: John Soo @ 2019-12-18 16:16 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: Guix-devel

[-- Attachment #1: Type: text/plain, Size: 57 bytes --]

Hi Pierre!

Awesome! I will keep my eyes peeled.

- John

[-- Attachment #2: Type: text/html, Size: 141 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-12-18 16:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-18 14:58 Helpful imenu matches John Soo
2019-12-18 15:37 ` Pierre Neidhardt
2019-12-18 16:16   ` John Soo

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.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.