 (when (fboundp 'column-highlight-mode)
   (global-set-key (kbd "C-c h") 'column-highlight-mode))
 
-;; ;;; Disable italic font style in comments and documentation.
-;; (set-face-italic 'font-lock-comment-face nil)
-;; (set-face-italic 'font-lock-doc-face nil)
+;XXX; ;;; Disable italic font style in comments and documentation.
+;XXX; (set-face-italic 'font-lock-comment-face nil)
+;XXX; (set-face-italic 'font-lock-doc-face nil)
+
+;XXX; (use-package use-package-chords
+;XXX;   :ensure t
+;XXX;   :config (key-chord-mode 1))
+
  
 (custom-set-variables

  (when (version<= "24.4" emacs-version)
    (advice-add #'counsel-git-grep-function :filter-args #'vvv/first-line)))

(when (require 'avy nil 'noerror)
  (setq avy-all-windows 'all-frames)
  (global-set-key (kbd "C-.") 'avy-goto-word-or-subword-1)
  (global-set-key (kbd "C->") 'avy-goto-char-timer) ; avy-goto-char-2 ?
  (global-set-key (kbd "C-x SPC") 'avy-pop-mark))

(when (require 'ace-window nil 'noerror)
  (global-set-key (kbd "M-p") 'ace-window)
  (global-set-key (kbd "M-P") 'ace-swap-window)
  (setq aw-ignore-current t)

  ;; Prevent some modules from stealing "M-p" binding.
  (add-hook 'diff-mode-hook
            (lambda () (define-key diff-mode-map (kbd "M-p") nil)))
  (add-hook 'markdown-mode-hook
            (lambda () (define-key markdown-mode-map (kbd "M-p") nil)))
  (add-hook 'compilation-mode-hook
            (lambda () (define-key compilation-mode-map (kbd "M-p") nil)))
  (add-hook 'grep-mode-hook
            (lambda () (define-key grep-mode-map (kbd "M-p") nil)))
  (with-eval-after-load "haskell-cabal"
    (define-key haskell-cabal-mode-map (kbd "M-p") nil)))
;;; ----------------------------------------------------------------------

;;; http://emacsredux.com/blog/2014/04/05/which-function-mode/
(setq mode-line-misc-info

    (mapc 'frame-set-background-mode (frame-list)))
  (global-set-key (kbd "C-M-8") 'toggle-solarized-light))

(global-set-key (kbd "M-`") 'repeat)  ; instead of 'tmm-menubar

;;; "Undo" (and "redo") changes in the window configuration with the
