                   (previous-line (window-half-height))
                   (recenter)))
 
-;; switch-to-previous-buffer
+;;; switch-to-previous-buffer
 (defun switch-to-previous-buffer ()
   "Switch to last buffer visited"
   (interactive)
   (switch-to-buffer (other-buffer)))
 
-;; key chords
+;;; key chords
 (require 'key-chord)
 (key-chord-define-global "jj" 'ace-jump-word-mode)
 (key-chord-define-global "jl" 'ace-jump-line-mode)

(key-chord-define-global "JJ" 'switch-to-previous-buffer)
(key-chord-mode +1)

;; use DejaVu Sans Mono
(set-frame-font (format "%s-10" "DejaVu Sans Mono"))

;;;; Language specific settings

;; c-mode
(setq c-default-style "stroustrup")

;; clojure-mode
(add-hook 'clojure-mode-hook 'paredit-mode)
(add-hook 'clojure-mode-hook (lambda () (define-clojure-indent
                                     (lazy-seq 'defun)

  (indent-according-to-mode))
(global-set-key (kbd "M-o") 'smart-open-line-above)

;;; highlight every line
(global-hl-line-mode 1)

;;; multiple-cursors
(require 'multiple-cursors)
(global-set-key (kbd "C-S-c C-S-c") 'mc/edit-lines)
(global-set-key (kbd "C->") 'mc/mark-next-like-this)
(global-set-key (kbd "C-<") 'mc/mark-previous-like-this)
(global-set-key (kbd "C-c C-<") 'mc/mark-all-like-this)

;;; turn off auto-fill-mode - starter-kit adds these hooks
(remove-hook 'prog-mode-hook 'esk-local-comment-auto-fill)
(remove-hook 'text-mode-hook 'turn-on-auto-fill)

;;; save every n keystrokes
(setq auto-save-interval 20)

;;; remove line highlighting
(remove-hook 'prog-mode-hook 'esk-turn-on-hi-line-mode)

;;; remove word highlighting
(remove-hook 'prog-mode-hook 'esk-turn-on-idle-highlight-mode)

;;; incremental searches always put point at search string beginning on exit
(add-hook 'isearch-mode-end-hook 'my-goto-match-beginning)

(defun my-goto-match-beginning ()
