 ;; undo tree
 (use-package undo-tree
   :ensure t
+  :diminish undo-tree
   :commands (undo-tree-undo undo-tree-redo)
   :init
   (global-undo-tree-mode)


;; if no region is active, act on current line
(use-package whole-line-or-region
  :ensure t)
(setq whole-line-or-region-extensions-alist
      '((comment-dwim whole-line-or-region-comment-dwim-2 nil)
        (copy-region-as-kill whole-line-or-region-copy-region-as-kill nil)
        (kill-region whole-line-or-region-kill-region nil)
        (kill-ring-save whole-line-or-region-kill-ring-save nil)
        (yank whole-line-or-region-yank nil)
        ))
(whole-line-or-region-mode 1)

;; tramp
(use-package tramp

  (setq recenter-positions '(2 middle)))

(add-hook 'imenu-after-jump-hook 'recenter-top-bottom)

;; smartparens
(use-package smartparens
  :ensure t
  :diminish (smartparens-mode . " ⓟ")
  :init
  (use-package smartparens-config)
  (smartparens-global-mode t)
