Basic imenu in helpful-mode

from blog lmno.lol @alvaro, | ↗ original
I'm finding Wilfred Hughes's helpful-mode, well… rather helpful. However, I'm missing imenu support. Here's a hacky way to get basic imenu. (defun helpful--create-imenu-index () "Create an `imenu' index for helpful." (beginning-of-buffer) (let ((imenu-items '())) (while (progn (beginning-of-line) ;; Not great,...