This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/init-package/init-autopair.el
2013-04-26 15:18:02 -04:00

10 lines
275 B
EmacsLisp

(require 'autopair)
(defvar autopair-modes
'(python-mode
emacs-lisp-mode
erlang-mode
ruby-mode))
(defun turn-on-autopair-mode () (autopair-mode 1))
(dolist (mode autopair-modes)
(add-hook (intern (concat (symbol-name mode) "-hook")) 'turn-on-autopair-mode))