Custom outline-regexp?

Asked by Boris Kheyfets

I'd like the outline treat things like

# ====
# defs:

as the only tags. For that I've tried:

(add-hook 'python-mode-hook
      (lambda ()
        (outline-minor-mode 1)
        (setq outline-regexp "=\\n#")))

This should make C-c @ C-n send me to the next block like

# ======
# options

It doesn't work. What do I do wrong?

Question information

Language:
English Edit question
Status:
Solved
For:
python-mode.el Edit question
Assignee:
No assignee Edit question
Solved by:
Boris Kheyfets
Solved:
Last query:
Last reply:
Revision history for this message
Andreas Roehler (a-roehler) said :
#1

AFAIU outline-mode is line-oriented, can't take two lines as regexp

hide-show mode should be able to perform it

Revision history for this message
Boris Kheyfets (kheyfboris) said :
#2

Ok then.