Malabarba / aggressive-indent-mode

Emacs minor mode that keeps your code always indented. More reliable than electric-indent-mode.
850 stars 36 forks source link

Prevent 'here string' content and key from getting indented #147

Open benthepoet opened 3 years ago

benthepoet commented 3 years ago

I'm trying to figure out the how I can prevent the content and closing key in a 'here string' from getting indented. In particular the following is an example in Gambit Scheme.

(define c-code #<<eof
if (true) {
  printf("Hello");
}
eof
)

The closing key eof needs to be unindented as well as the content in between should retain it's original formatting.