(outline-mode): Use `^' and a shy group
when constructing imenu-generic-expression from outline-regexp.
This commit is contained in:
parent
1e1e5dafd7
commit
ac7b494762
1 changed files with 1 additions and 1 deletions
|
@ -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@"
|
||||
|
|
Loading…
Add table
Reference in a new issue