 (setq wttrin-default-cities (quote ("Paris" "paris" "bourg-la-Reine")))
 ;;;
 
-;; variables
+;;;; variables
 (setq add-log-mailing-address "olivier@tharan.org")
 
 (setq scroll-error-top-bottom t)

; don't mess with special buffers (*scratch*, etc.)
(setq uniquify-ignore-buffers-re "^\\*")

;;; General modes
(add-hook 'text-mode-hook
          '(lambda () (auto-fill-mode t) ))
(add-hook 'text-mode-hook
          '(lambda () (setq fill-column 78)))

;;; Programming modes
;; Magit
(use-package magit)
(global-set-key [(control x) (v) (b)] 'magit-status)
(global-set-key (kbd "C-x g") 'magit-status)

(setq use-package-always-ensure t)
(setq use-package-always-pin "melpa-stable")

;; http://milkbox.net/note/single-file-master-emacs-configuration/
(defun imenu-elisp-sections()
  (setq imenu-prev-index-position-function nil)
  (add-to-list 'imenu-generic-expression '("Sections" "^;;;; \\(.+\\)$" 1) t))
(add-hook 'emacs-lisp-mode-hook 'imenu-elisp-sections)

; confirm leaving Emacs (why would you want to, right?)
(setq kill-emacs-query-functions
      (cons (lambda () (y-or-n-p "Really kill Emacs? "))
