The Stack Overflow podcast is back! Listen to an interview with our new CEO.

New answers tagged


Here's a command that does that until it finds an empty line: (defun indent-children () (interactive) (save-excursion (while (looking-at ".*[^\n[:space:]]") (forward-line 1) (indent-to 2))))


If you only want to modify a part of your text select the relevant region otherwise put point at the beginning of the first line. Replace the empty string at the line-beginning with the string consisting of one star and one space C-M-% ^ RET *⎵ RET (thereby the char ⎵ stands for a space). Select the lines below the first one and demote the headings with M-...

Top 50 recent answers are included