Replies: 1 comment
-
太阳 ***@***.***> writes:
About helm-outline in helm-misc.el, I think there are two changes that can be done to improve it(make it usable in more modes).
1. Use outline-regexp instead of hardcoded "^[*]+". Some modes ( like markdown-mode, latex-mode..) have a customized value, and you can even define it for elisp-mode(below is a picture to
show this)
2. Delete the cl-assert at the beginning of helm-outline. From my experiment, after deleting it and setting outline-regexp in a buffer, you can use helm-outlne there, no need to enable
outline-minor-mode.
Done, thanks.
…--
Thierry
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
About helm-outline in helm-misc.el, I think there are two changes that can be done to improve it(make it usable in more modes).
outline-regexp
instead of hardcoded "^[*]+". Some modes ( like markdown-mode, latex-mode..) have a customized value for outline-regexp, and you can even customize it for elisp-mode(below is a picture to show this), go-mode, rust-mode and so on.cl-assert
at the beginning of helm-outline. From my experiment, after deleting it and settingoutline-regexp
in a buffer, you can use helm-outlne there, no need to enable outline-minor-mode.Following is the picture of helm-misc.el where I set outline-regexp to ";;[;*]+[\s\t]+", then helm-outline showed the outline:

Beta Was this translation helpful? Give feedback.
All reactions