 
 (show-paren-mode 1)
 
-;; Highlight line.
-(require 'hl-line)
+;; No tabs
+(setq-default indent-tabs-mode nil)
+
+;; Highlight line. Just add hooks since hl-line is autoloaded
 (add-hook 'prog-mode-hook 'hl-line-mode)
 (add-hook 'package-menu-mode-hook 'hl-line-mode)
 (add-hook 'org-agenda-mode-hook 'hl-line-mode)

  :bind ("C-=" . er/expand-region))

;; Undo-Tree for real undo/redo commands
(use-package undo-tree
  :ensure t
  :diminish ""
  :init
  (global-undo-tree-mode 1)
  :config
  (define-key undo-tree-map (kbd "C-/") nil)
  :bind
  (("C-z" . undo)
   ("C-S-z" . undo-tree-redo)))


(add-hook 'Man-mode-hook 'visual-line-mode)

;; diminish visual-line-mode
(diminish 'visual-line-mode)

;; smart comment was crap. Let's stick to the good ol' evil-nerd-commenter
(use-package evil-nerd-commenter
  :ensure t
  :bind ("M-;" . evilnc-comment-or-uncomment-lines))

;; I've always liked coloring the buffer, because it makes easier to identify stuff around
;; So let's test this mode
(use-package color-identifiers-mode
  :ensure t
  :config
  (add-hook 'prog-mode-hook 'color-identifiers-mode)
  :diminish color-identifiers-mode)

;; Let's use multiple cursors.
(use-package multiple-cursors
  :ensure t
  :bind

;; remap C-a to `smarter-move-beginning-of-line'
(global-set-key [remap move-beginning-of-line]
                'smarter-move-beginning-of-line)

;; Needs some testing
(evil-redirect-digit-argument evil-motion-state-map "0" 'smarter-move-beginning-of-line)

;; and unbind M-m
(global-unset-key (kbd "M-m"))
