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

9 lines
254 B
EmacsLisp
Raw Normal View History

(require 'autopair)
(defvar autopair-modes
2013-02-07 16:28:55 +00:00
'(python-mode erlang-mode emacs-lisp-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))