 (defun ar/python-mode-hook-function ()
   "Called when entering `python-mode'."
   (setq python-indent-offset 4)
-  (electric-operator-mode)
   (anaconda-mode)
   (eldoc-mode +1)
   ;; FIXME python-docstring-mode currently broken

;; From http://www.gnu.org/software/emacs/manual/html_node/eintr/Indent-Tabs-Mode.html
(setq-default indent-tabs-mode nil)

(use-package electric-operator :ensure t
  :commands electric-operator-mode)

;; Automatically closes brackets.
(electric-pair-mode)
;; Additional electric pairs.

(defun ar/java-mode-hook-function ()
  "Called when entering `java-mode'."
  (bind-key [f6] java-mode-map)
  ;; 2-char indent for java.
  (defvar c-basic-offset)
  (setq c-basic-offset 2)
