 ;; 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/python-mode-hook-function ()
  "Called when entering `python-mode'."
  (setq python-indent-offset 4)
  (anaconda-mode)
  (eldoc-mode +1)
  ;; FIXME python-docstring-mode currently broken

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