I'd like Emacs to prevent me from attempting to create headlines with more than three levels of nesting in
For example, if I try to demote
3.2 in the following example, I would like Emacs to stop me, and print a message telling me I cannot promote the headline:
* 1 ** 2 *** 3.1 *** 3.2
Are there any existing variables or functions I can use to do this? If not, could you offer suggestions, especially code specifics, on how I might implement this in ELisp?