dot/emacs: Turn on bracketed-paste support if we can.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 7 Aug 2017 11:58:15 +0000 (12:58 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 7 Aug 2017 11:58:15 +0000 (12:58 +0100)
This is on by default in Emacs 25, which I don't have yet.  Otherwise,
clone https://github.com/hchbaw/bracketed-paste.el and put the resulting
thing somewhere in the Emacs load-path.

dot/emacs

index 6cd38f3..5a0fd49 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
@@ -36,6 +36,9 @@
 (require 'cl)
 (require 'dot-emacs)
 
+(unless (mdw-emacs-version-p 25)
+  (trap (require 'bracketed-paste) (bracketed-paste-enable)))
+
 ;;;--------------------------------------------------------------------------
 ;;; Some random initialisation.