 
 ;; 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)
+  :diminish whole-line-or-region-mode
+  :ensure t
+  :init
+  (whole-line-or-region-mode 1)
+  :config
+  (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)
+          )))
+
 
 ;; tramp
 (use-package tramp

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

  (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)
