el/dot-emacs.el: Don't let `<' insert here-document scaffolding.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 1 May 2015 19:38:54 +0000 (20:38 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 1 May 2015 19:38:54 +0000 (20:38 +0100)
I generally dislike things being magically inserted after point while
I'm typing, and this is an especially egregious case since

  (a) there doesn't seem to be a `proper' way to turn it off (e.g., by
      customizing a variable), so I've had to rebind the key; and

  (b) the inserted material contains a fixed choice `EOF' for the
      delimiter token, which firstly might be usefully varied (e.g.,
      since it will appear in the text body, or to convey more useful
      information to the reader), and secondly must appear (and
      therefore requires changing) in two separate places.

No.  We don't like that.

el/dot-emacs.el

index f1876df..4f2df95 100644 (file)
@@ -2779,6 +2779,9 @@ setting once it's actually been made."
     (let ((executable-set-magic #'(lambda (s &rest r) s)))
       (sh-set-shell shell-name)))
 
+  ;; Don't insert here-document scaffolding automatically.
+  (local-set-key "<" 'self-insert-command)
+
   ;; Now enable my keys and the fontification.
   (mdw-misc-mode-config)