On Monday, 12 Jun 2017 at 15:49, Birnle wrote: > Is there no command to "unclean" the file again? Difficulty is defining what "unclean" means. For instance, if it is simply removing spaces at the start of a line, you could use ,----[ C-h f replace-regexp RET ] | replace-regexp is an interactive compiled Lisp function in | ‘replace.el’. | | (replace-regexp REGEXP TO-STRING &optional DELIMITED START END | BACKWARD) | | This function is for interactive use only; | [...] `---- and replace "^ +" with "" (no quotes typed). But this would apply to all lines. If you can come up with a regexp for "unclean" lines then this could work. HTH, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.7-531-g530113