              '("melpa" . "http://melpa.milkbox.net/packages/") t)
 (package-initialize)
 
-;;; fetch the list of packages available
+;; fetch the list of packages available
 (when (not package-archive-contents)
   (package-refresh-contents))
 
-;;; install desired packages
+;; install desired packages
 (defvar my-packages '(ac-nrepl
                       ace-jump-mode
                       auto-complete

  (when (not (package-installed-p p))
    (package-install p)))

;;; Non-package-managed elisp files
(add-to-list 'load-path "~/.emacs.d/lisp/")

;;; compile
(setq compilation-ask-about-save nil)
(setq compilation-auto-jump-to-first-error t)
(setq compilation-scroll-output t)
(add-hook 'prog-mode-hook (lambda () (local-set-key (kbd "C-c c") 'compile)))

;;; macros
(defun my-macro-query (arg)
  "Prompt for input using minibuffer during kbd macro execution.
    With prefix argument, allows you to select what prompt string to use.

              nil))))
(add-hook 'prog-mode-hook 'paredit-mode)

;; whitespace
(setq-default show-trailing-whitespace t)
(setq whitespace-style '(tabs tab-mark))
(add-hook 'prog-mode-hook 'whitespace-mode)
(add-hook 'text-mode-hook 'whitespace-mode)

;; smarter indentation
(global-set-key (kbd "RET") 'newline-and-indent)
(global-set-key (kbd "C-j") 'newline)

;; dired-mode - enter doesn't open a new buffer
(put 'dired-find-alternate-file 'disabled nil)
(add-hook 'dired-mode-hook (lambda () (local-set-key (kbd "RET") #'dired-find-alternate-file)))

;; automatically load files as they change on disk
(global-auto-revert-mode t)

;; always show row/column numbers
(setq column-number-mode t)

;; bm (bookmarks)
(global-set-key (kbd "C-.") 'bm-toggle)
(global-set-key (kbd "C-,") 'bm-next)
(setq bm-highlight-style 'bm-highlight-only-fringe)
