backward-paragraph as font-lock-beginning-of-syntax-function.
(set (make-local-variable 'paragraph-separate)
(concat paragraph-separate "\\|\\(" outline-regexp "\\)"))
(set (make-local-variable 'font-lock-defaults)
- '(outline-font-lock-keywords t))
+ '(outline-font-lock-keywords t nil nil 'backward-paragraph))
(setq imenu-generic-expression
(list (list nil (concat outline-regexp ".*$") 0)))
(add-hook 'change-major-mode-hook 'show-all nil t))