Source

shared / .emacs

Diff from to
 (require 'flymake)
 (require 'flymake-cursor)
 (require 'mediawiki)
+(require 'autopair)
+
+(defvar autopair-modes '(python-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))
+
 
 (setq-default indent-tabs-mode nil)
 (setq column-number-mode t)
 		      temp-file
 		      (file-name-directory buffer-file-name))))
     (list "pycheck"  (list local-file))))
+
 (add-to-list 'flymake-allowed-file-name-masks
              '("\\.py\\'" flymake-pyflakes-init))