Augusto Stoffel wrote: > > This is a marginally related remark, but I noticed that python-mode sets > > (setq-local outline-heading-end-regexp ":[^\n]*\n") > > and this doesn't work well with the new-ish type annotation syntax. > > Wouldn't it be better to simply remove this setting, reverting back to > the default "\n"? Then folding by outline-minor-mode would behave like > hideshow currently does when it comes to something like > > def f( > x: int > ) -> int: > pass I agree with removing the `outline-heading-end-regexp' setting. I thought about adding a custom variable since some people might prefer the current setting, but I reconsidered that setting it as a file local variable would be sufficient as described in docstring: #+begin_quote The recommended way to set this is with a ‘Local Variables:’ list in the file it applies to. #+end_quote Is there any comments on extending `hs-special-modes-alist'? Attached are revised patches. I would like to know if it is worth extending `hs-special-modes-alist'. Best Regards,