Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

in org-mode, how to demote all headers in a region?

Tags:

emacs

org-mode

In my org-mode file, I have a bunch of level 1 headings. I want to highlight some of them and demote them by one level to level 2. How do I do this? When I highlight the region and do M-S-right, I get This command is active only in special context like tables, headlines or items.

like image 234
incandescentman Avatar asked Jan 28 '26 02:01

incandescentman


2 Answers

You want to use M-right rather than M-S-right.

like image 70
Jonathan Leech-Pepin Avatar answered Jan 31 '26 04:01

Jonathan Leech-Pepin


Here, at least, a sort-of workaround solution: use regexp-replace to change "^*" into "". That should do the job, even if not in a pure Org way.

like image 34
fniessen Avatar answered Jan 31 '26 05:01

fniessen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!