                                                    (match-end 1) "\u03BB")
                                    nil)))))))
 
-;; python-mode
+;;; python-mode
 (setq python-remove-cwd-from-path nil)
 
-;; thrift-mode
+;;; thrift-mode
 (require 'thrift-mode)
 
-;; yaml mode
+;;; yaml mode
 (require 'yaml-mode)
 
-;; load desired theme
+;;; load desired theme
 (load-theme 'nzenburn t)

(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)

(setq bm-recenter t)
(setq bm-goto-position nil)

;;; smart-tab-mode
(require 'smart-tab)
(setq smart-tab-using-hippie-expand t)
(global-smart-tab-mode 1)
(add-to-list 'smart-tab-disabled-major-modes 'haskell-mode)

;;; replace yes-or-no-p with y-or-n-p
(defalias 'yes-or-no-p 'y-or-n-p)

;;; flycheck
(add-hook 'after-init-hook #'global-flycheck-mode)
(setq flycheck-indication-mode nil)

;;; ido
(setq ido-use-virtual-buffers t)
(ido-ubiquitous-mode t)

;;; smex
(global-set-key (kbd "M-x") 'smex)
(global-set-key (kbd "M-X") 'smex-major-mode-commands)
(global-set-key (kbd "C-c C-c M-x") 'execute-extended-command)

;;; don't show the emacs start screen
(setq inhibit-startup-message t)

;;; indicate end of file
(setq default-indicate-empty-lines t)

;;; scrolling moves half a window at a time
(defun window-half-height ()
  (/ (window-height (selected-window)) 2))
(global-set-key (kbd "C-v")
