 
 (add-hook 'after-save-hook #'executable-make-buffer-file-executable-if-script-p)
 
-(use-package elec-pair
-  :config
-  (electric-pair-mode 1))
-
 (use-package elisp-mode
   :ensure nil
-  :demand
   :bind (:map emacs-lisp-mode-map
               ("C-c e b" . eval-buffer)
               ("C-c e d" . eval-defun)


(use-package csharp-mode
  :init
  (add-hook 'csharp-mode-hook #'omnisharp-mode)
  (add-hook 'csharp-mode-hook #'my-csharp-mode-setup))

(use-package groovy-mode)

(use-package js2-mode
  :mode "\\.js\\'")

(use-package python
  :mode ("\\.py\\'" . python-mode))

(use-package sphinx-doc
  :config
  (add-hook 'python-mode-hook #'sphinx-doc-mode))

(use-package jedi
  :config
  (progn
    ;; need to pip install epc and jedi
    (add-hook 'python-mode-hook 'jedi:setup)
    (setq jedi:complete-on-dot t)))
;; TODO: in evil's insert state, map the normal autocomplete to jedi

(use-package anaconda-mode
  :config
  (add-hook 'python-mode-hook #'anaconda-mode))

(use-package java-snippets)

(use-package jtreg
  :load-path "~/devel/emacs-jtreg/"
  :ensure nil
  :config
  (setq jtreg-dir "~/local/jtreg/lib/"))

(use-package jar-manifest-mode)

(use-package lua-mode)

(use-package restclient
  :commands restclient-mode

      (ert t)
      (select-window (get-buffer-window original-buffer)))))

(defun my-csharp-mode-setup ()
  "Configure csharp-mode."
  (setq indent-tabs-mode nil)
