 ;; rectangles have lines of varying lengths.
 ;; http://emacs.stackexchange.com/a/3661/115
 (use-package rectangle-utils
-  ;; :load-path "elisp/rectangle-utils"
   :commands (extend-rectangle-to-end)
   :init
   (progn

       :map region-bindings-mode-map
        ("|" . extend-rectangle-to-end)))))

(defun copy-rectangle-as-kill-then-delete (start end)
  "Copy the region-rectangle and save it as the last killed one.
Then delete the rectangle, which will replaced the deleted region with blank
spaces."
  (interactive "r")
  (setq killed-rectangle (extract-rectangle start end))
  (delete-rectangle start end)
  (setq deactivate-mark t)
  (if (called-interactively-p 'interactive)
      (indicate-copied-region (length (car killed-rectangle)))))

;; Time-stamp: <2015-08-28 12:28:00 kmodi>

;; Functions related to editing text in the buffer

