;lib: update emacs code-folding config
orgstruct-mode was dropped from org 9.2, and I shouldn't have been forcing it on anyway. The new config allows its "replacement", outshine-mode, to do similar code folding when you press tab on any of the lines matching outline-regexp. But only if you patch it as mentioned at https://github.com/alphapapa/outshine/issues/77. Enable it by, eg: (add-hook 'haskell-mode-hook 'outshine-mode)
This commit is contained in:
		
							parent
							
								
									90d4bb9c0f
								
							
						
					
					
						commit
						9868d7f20d
					
				| @ -1,4 +1,4 @@ | ||||
| --- * -*- eval: (orgstruct-mode 1); orgstruct-heading-prefix-regexp:"--- "; -*- | ||||
| --- * -*- outline-regexp:"--- \\*"; -*- | ||||
| --- ** doc | ||||
| -- In Emacs, use TAB on lines beginning with "-- *" to collapse/expand sections. | ||||
| {-| | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| --- * -*- eval: (orgstruct-mode 1); orgstruct-heading-prefix-regexp:"--- "; -*- | ||||
| --- * -*- outline-regexp:"--- \\*"; -*- | ||||
| --- ** doc | ||||
| -- In Emacs, use TAB on lines beginning with "-- *" to collapse/expand sections. | ||||
| {-| | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| --- * -*- eval: (orgstruct-mode 1); orgstruct-heading-prefix-regexp:"--- "; -*- | ||||
| --- * -*- outline-regexp:"--- \\*"; -*- | ||||
| --- ** doc | ||||
| -- In Emacs, use TAB on lines beginning with "-- *" to collapse/expand sections. | ||||
| {-| | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| --- * -*- eval: (orgstruct-mode 1); orgstruct-heading-prefix-regexp:"--- "; -*- | ||||
| --- * -*- outline-regexp:"--- *"; -*- | ||||
| --- ** doc | ||||
| -- In Emacs, use TAB on lines beginning with "-- *" to collapse/expand sections. | ||||
| {-| | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| --- * -*- eval: (orgstruct-mode 1); orgstruct-heading-prefix-regexp:"--- "; -*- | ||||
| --- * -*- outline-regexp:"--- \\*"; -*- | ||||
| --- ** doc | ||||
| -- In Emacs, use TAB on lines beginning with "-- *" to collapse/expand sections. | ||||
| {-| | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| --- * -*- eval: (orgstruct-mode 1); orgstruct-heading-prefix-regexp:"--- "; -*- | ||||
| --- * -*- outline-regexp:"--- \\*"; -*- | ||||
| --- ** doc | ||||
| -- In Emacs, use TAB on lines beginning with "-- *" to collapse/expand sections. | ||||
| {-| | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user