c.bu...@posteo.jp writes:
> Dear Tim > > Am 04.04.2022 17:49 schrieb Tim Cross: >> What is line-fill-mode? It isn't a 'standard' emacs mode, so must be >> some add-on? > > Sorry this was a "typo". > >> At any rate, I don't see this problem when using standard >> auto-fill-mode. With this mode, when lines wrap (because I've exceeded >> the fill column) or if I use C-q to trigger filling, the wrapped lines >> are indented correctly so that lists are preserved. > > This is not the case with me. > Please see this screenrecording > https://debianforum.de/forum/gallery/image/3641/source > > In the top window you see the relevant lines from my init.el. > In the bottom you see a orgroam capture buffer while I am tiping a > loreipsum line and exceeding the fill column. It is not intended. > > And that is how it looks like in raw org > > :PROPERTIES: > :ID: 7fe439ec-c46d-4da5-902a-3ba40cebb25e > :END: > > #+title: test > #+date: [2022-04-04 Mo 20:04] > > - Lorem ipsum dolro sit amet, consetetur sadipscing elitr, sed diam > nonumy > eirmod tempor invidunt ut > - second item > second line in second item > - > > The first list entry got its newline char automatically via > auto-fill-mode. > The second entry got its newline by myself via pressing RET. I cannot reproduce your issue using a clean Emacs. I suspect this is either something incorrect in your init.el file or something caused by org-roam (which is not part of org-mode). I note from the screenshot you provided that you are explicitly setting auto-fill-function. This is not the standard way to turn on auto-fill-mode and it could break mode specific settings for auto-filling. Instead, you should call auto-fill-mode in the appropriate mode specific hook (as specified in the emacs manual). I would suggest you try reproducing your issue in a clean Emacs e.g. emacs -Q open an org file do M-x auto-fill-mode do M-x org-capture to start a data capture do M-x auto-fill-mode to enable auto-filling in the capture buffer Add list items to the capture buffer, some long, some short and let auto-fill do the filling complete the capture When I do this, the lists are formatted correctly and long lines are wrapped with the correct item indentation. This is with GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.16.0) of 2022-04-05 Org mode version 9.5.2 (release_9.5.2-25-gaf6f12 @ /usr/local/share/emacs/29.0.50/lisp/org/)