Re: Necessity of `org-fill-paragraph'

2020-06-04 Thread Eric S Fraga
On Thursday, 4 Jun 2020 at 14:49, Dominik Schrempf wrote: > For cases like these, it would be advantageous if major modes could > redefine certain functions. fill-paragraph will check fill-paragraph-function and, if that this defined, it will be used instead of the default behaviour. -- : Eric

Re: Necessity of `org-fill-paragraph'

2020-06-04 Thread Dominik Schrempf
Dear Nicolas! Thank you for your fast reply! I now use a custom =org-unfill-toggle= which does the same as =unfill-toggle= but uses =org-fill-paragraph=. It just took me a while to see where the problem lies! For cases like these, it would be advantageous if major modes could redefine certain func

Re: Necessity of `org-fill-paragraph'

2020-06-04 Thread Nicolas Goaziou
Hello, Dominik Schrempf writes: > I am using a global keybinding for =M-q=, so that I can fill and unfill > paragraphs with one key stroke (unfill.el): > > : (global-set-key (kbd "s-q") 'unfill-toggle) > > For a long time, I thought that =fill-paragraph= was broken in Org mode, > because > it d

Necessity of `org-fill-paragraph'

2020-06-04 Thread Dominik Schrempf
Hello, I am using a global keybinding for =M-q=, so that I can fill and unfill paragraphs with one key stroke (unfill.el): : (global-set-key (kbd "s-q") 'unfill-toggle) For a long time, I thought that =fill-paragraph= was broken in Org mode, because it doesn't work well on code blocks, on lists,