 (use-package ace-jump-mode
   :ensure t
   :config
-  (progn
-    (set 'ace-jump-mode-case-fold t)
-
-    ;; favour home row keys
-    (let ((first-list  '(?a ?r ?s ?t ?n ?e ?i ?o ?d ?h)))
-      (set 'ace-jump-mode-move-keys
-	   (nconc first-list
-		  (-difference (loop for i from ?a to ?z collect i) first-list)
-		  (loop for i from ?A to ?Z collect i))))
-
-    (set 'ace-jump-mode-scope 'window)
-    (global-set-key (kbd "C-p") 'ace-jump-mode)))
+  (set 'ace-jump-mode-case-fold t)
+
+  ;; favour home row keys
+  (let ((first-list  '(?a ?r ?s ?t ?n ?e ?i ?o ?d ?h)))
+    (set 'ace-jump-mode-move-keys
+         (nconc first-list
+                (-difference (loop for i from ?a to ?z collect i) first-list)
+                (loop for i from ?A to ?Z collect i))))
+
+  (set 'ace-jump-mode-scope 'window)
+  (global-set-key (kbd "C-p") 'ace-jump-mode))
 
 
 (use-package expand-region

  :disabled

  :config
  (progn
    ;; the ac plugin will be activated in each buffer using irony-mode
    (irony-enable 'ac)             ; hit C-RET to trigger completion

    ;; avoid enabling irony-mode in other modes that inherit from c-mode,
    ;; e.g: php-mode
    (defun irony-mode-if-safe ()
      (interactive)
      (when (member major-mode irony-known-modes)
	(irony-mode 1)))
    (add-hook 'c++-mode-hook 'irony-mode-if-safe)
    (add-hook 'c-mode-hook 'irony-mode-if-safe)

    ;; Kill C-c keys
    (define-key irony-mode-map (kbd "C-c") nil)

    ))


(defun external-shell-in-dir ()

(add-to-list 'load-path "~/.emacs.d/electric-spacing")
(load-library "electric-spacing")
(use-package electric-spacing
  :config
  ;; Enable in some modes
  (mapcar (lambda (hook) (add-hook hook #'electric-spacing-mode))
          '(python-mode-hook
            ess-mode-hook
            c-mode-hook
            c++-mode-hook
            java-mode-hook))
  )


