   (flyspell-prog-mode)
   (whitespace-mode)
   (rainbow-delimiters-mode)
-  (linum-mode)
   (centered-cursor-mode)
   ;; Language-aware editing commands. Useful for imenu-menu.
   (semantic-mode 1)

   ("a" ar/find-all-dired-current-dir "find all files")
   ("q" nil "quit")))

(global-set-key
 (kbd "C-c h")
 (defhydra hydra-hunks (:color amaranth)
   "git hunks"
   ("n" git-gutter+-next-hunk "next")
   ("p" git-gutter+-previous-hunk "previous")
   ("k" git-gutter+-revert-hunk "kill")
   ("d" git-gutter+-popup-hunk "diff")
   ("l" git-messenger:popup-show-verbose "log")
   ("q" nil "quit")))

(defhydra hydra-magit-commit (:color blue)
  "magit commit"


(use-package git-timemachine :ensure t)

(use-package linum
  :ensure t
  :config (progn
            (set-face-attribute 'linum nil
                                :background "#1B1D1E")
            (setq linum-format "%4d ")))

(use-package git-gutter
  :ensure t)
(global-git-gutter-mode +1)
(global-set-key (kbd "C-c <up>") #'git-gutter:previous-hunk)
(global-set-key (kbd "C-c <down>") #'git-gutter:next-hunk)

(defun ar/setup-tty ()
  "Setup tty frame."
  (unless (window-system)
    nil)) ;; TODO

(ar/setup-tty)

;; TODO: Revisit this.
(defun ar/setup-graphic-display ()
  "Setup graphic display."
  (when (window-system)
    nil)) ;; TODO

(ar/setup-graphic-display)

