Commit ac7b4947 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(outline-mode): Use `^' and a shy group

when constructing imenu-generic-expression from outline-regexp.
parent 1e1e5daf
......@@ -228,7 +228,7 @@ Turning on outline mode calls the value of `text-mode-hook' and then of
(set (make-local-variable 'font-lock-defaults)
'(outline-font-lock-keywords t nil nil backward-paragraph))
(setq imenu-generic-expression
(list (list nil (concat outline-regexp ".*$") 0)))
(list (list nil (concat "^\\(?:" outline-regexp "\\).*$") 0)))
(add-hook 'change-major-mode-hook 'show-all nil t))
(defcustom outline-minor-mode-prefix "\C-c@"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment