When editing a bash script file with emacs, and trying to enter <<<
, at the second <
emacs insert a template for a here document, like in the following example:
<<EOF
EOF
This is not the desired output, because I would enter a literal <<<
.
For the moment I resort to entering < < <
, and then deleting spaces, but I prefer to being allowed to enter it directly.
Best Answer
There is actually no need for Tom 's custom
my-disable-here-document
function rebinding the keys. This feature can be enabled and disabled withsh-electric-here-document-mode
:(It can also be toggled for the active buffer via
M-x sh-electric-here-document-mode
.)