                  :when '(ar/sp-prog-filter-angle-brackets)
                  :skip-match 'ar/sp-prog-skip-match-angle-bracket))
 
-;; If no region active, operate on line.
-;; For example C-w would kill like if no region is active.
-(use-package whole-line-or-region
-  :ensure t
-  :config
-  (whole-line-or-region-global-mode)
-  (defun adviced:whole-line-or-region-wrap-region-kill (orig-fn &rest args)
-    "Like `whole-line-or-region-wrap-region-kill' but paste line below."
-    (let ((f (nth 0 args))
-          (num-lines (nth 1 args)))
-      (if (whole-line-or-region-use-region-p)
-          (funcall f (region-beginning) (region-end) 'region)
-        (whole-line-or-region-filter-with-yank-handler
-         (whole-line-or-region-preserve-column
-          (funcall f
-                   (line-beginning-position 1)
-                   (line-end-position num-lines)
-                   nil))))))
-  (advice-add #'whole-line-or-region-wrap-region-kill
-              :around
-              #'adviced:whole-line-or-region-wrap-region-kill))
-
 ;; Display chars/lines or row/columns in the region.
 (use-package region-state
   :ensure t

                ("^" . mc/edit-beginnings-of-lines)
                ("$" . mc/edit-ends-of-lines))
    :config
    (region-bindings-mode-enable)))

;; Open rc files with conf-mode.
(use-package conf-mode

        (previous-line)
        (insert lines))))

  ;; From https://github.com/daschwa/emacs.d
  (defadvice kill-ring-save (before slick-copy activate compile)
    "When called interactively with no active region, copy a single
line instead."
    (interactive
     (if mark-active
         (list (region-beginning) (region-end))
       (message "Copied line")
       (list (line-beginning-position) (line-end-position)))))

  (use-package region-bindings-mode
    :ensure t
    :demand
