Skip to content

Commit

Permalink
Drop autopair
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Nov 20, 2012
1 parent 4e937e5 commit d7b6ac9
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 20 deletions.
11 changes: 0 additions & 11 deletions init-editing-utils.el
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,6 @@
(require 'expand-region)
(global-set-key (kbd "C-=") 'er/expand-region)

;;----------------------------------------------------------------------------
;; Autopair quotes and parentheses
;;----------------------------------------------------------------------------
(require 'autopair)
(setq autopair-autowrap t)
(autopair-global-mode t)

(defun inhibit-autopair ()
"Prevent autopair from enabling in the current buffer."
(setq autopair-dont-activate t)
(autopair-mode -1))

;;----------------------------------------------------------------------------
;; Fix per-window memory of buffer point positions
Expand Down
1 change: 0 additions & 1 deletion init-elpa.el
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ ARCHIVE is the string name of the package archive.")
(require-package 'clojurescript-mode)
(require-package 'nrepl)
(require-package 'diminish)
(require-package 'autopair)
(require-package 'js-comint)
(require-package 'php-mode)
(require-package 'smarty-mode)
Expand Down
3 changes: 0 additions & 3 deletions init-lisp.el
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@

;; Compatibility with other modes

(defadvice enable-paredit-mode (before disable-autopair activate)
(inhibit-autopair))

(suspend-mode-during-cua-rect-selection 'paredit-mode)


Expand Down
2 changes: 0 additions & 2 deletions init-org.el
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,4 @@
;;(require 'org-checklist)
(require 'org-fstree)))

(add-hook 'org-mode-hook 'inhibit-autopair)

(provide 'init-org)
3 changes: 0 additions & 3 deletions init-slime.el
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
(setq slime-complete-symbol*-fancy t)
(setq slime-complete-symbol-function 'slime-fuzzy-complete-symbol)

(dolist (hook '(sldb-mode-hook slime-repl-mode-hook))
(add-hook hook 'inhibit-autopair))

;; Stop SLIME's REPL from grabbing DEL, which is annoying when backspacing over a '('
(defun override-slime-repl-bindings-with-paredit ()
(define-key slime-repl-mode-map (read-kbd-macro paredit-backward-delete-key) nil))
Expand Down

0 comments on commit d7b6ac9

Please sign in to comment.