dajva / rg.el

Emacs search tool based on ripgrep
https://rgel.readthedocs.io
GNU General Public License v3.0
465 stars 38 forks source link

Potentially enable outline-minor-mode #132

Open hmelman opened 2 years ago

hmelman commented 2 years ago

Not sure about this, but enabling outline-minor-mode in rg-mode seems to be pretty nice, at least when rg-group-result is t. I'm sure it could be improved.

(defun hrm-rg-mode-hook ()
  "My rg-mode-hook.  Setup outline-minor-mode."
  (setq-local outline-regexp "File:")
  (outline-minor-mode 1))

(add-hook 'rg-mode-hook #'hrm-rg-mode-hook)
dajva commented 2 years ago

Thanks for the suggestion. Yeah looks nice with a quick try.

hmelman commented 1 year ago

@dajva So I see that imenu support was added, but I don't see that outline-minor-mode support was added, so I don't know why this bug was closed.

dajva commented 1 year ago

It's not closed.

hmelman commented 1 year ago

Ah, my mistake.