Permalink
Browse files

Giving autopair another shot.

  • Loading branch information...
magnars committed Nov 30, 2011
1 parent 3f57fe4 commit d27872d7c6df9d84961e45dce0511538fd4dfe32
Showing with 1,083 additions and 0 deletions.
  1. +1 −0 init.el
  2. +14 −0 setup-autopair.el
  3. +1,068 −0 site-lisp/autopair.el
View
@@ -36,6 +36,7 @@
(require 'setup-dired)
(require 'setup-magit)
(require 'setup-hippie)
+(require 'setup-autopair)
;; Map files to modes
(require 'mode-mappings)
View
@@ -0,0 +1,14 @@
+;; Autopair parens
+
+(require 'autopair)
+(autopair-global-mode) ;; to enable in all buffers
+(setq autopair-blink nil) ;; no no no! NO BLINKING! NOOO!
+
+(defun autopair-dont ()
+ (setq autopair-dont-activate t))
+
+;; Don't autopair lisp
+(add-hook 'emacs-lisp-mode-hook 'autopair-dont)
+(add-hook 'lisp-interaction-mode 'autopair-dont)
+
+(provide 'setup-autopair)
Oops, something went wrong.

0 comments on commit d27872d

Please sign in to comment.