Carsten Dominik writes: > I was just thinking, if you are setting up two local variables, you > could set up three and include org-outline-regexp-bol as well. Or, > you could just set up org-outline-regexp', and make the function > org-struct-mode set up the other two as additional local variables. > This would simplify things. In fact, I think this would make for a > more compact and better patch, Christopher, what do you think? I agree. I am not sure how to deduce org-heading-regexp from org-outline-regexp, though. Maybe we can use a buffer-local orgstruct-heading-prefix and setup org-heading-regexp/org-outline-regexp(-bol) from this one? Here is my patch with org-outline-regexp-bol being a variable and being set up by the hijacker commands using org-outline-regexp.