       ("Q" nil "quit"))
 
     (defun modi/org-template-maybe ()
-      "Insert org-template if point is at the beginning of the line, or is a
-region is selected. Else call `self-insert-command'."
+      "Insert org-template if point is at the beginning of the
+line, or if a region is selected.  Else call
+`self-insert-command'."
       (interactive)
-      (let ((regionp (use-region-p)))
-        (if (or regionp
-                (and (not regionp)
+      (let ((is-region? (use-region-p)))
+        (if (or is-region?
+                (and (not is-region?)
                      (looking-back "^[[:blank:]]*")))
             (hydra-org-template/body)
           (self-insert-command 1))))

          (cond
           ((bolp)                      ;`end' is at BOL
            (skip-chars-backward " \n\t")
            (setq end (point)))
           ((and (not (bolp))           ;`end' is neither at BOL nor at EOL
                 (not (looking-at "[[:blank:]]*$")))
            ;; Insert a newline if `end' is neither at BOL nor EOL

        ;; Now if a region was selected, and `content' was saved from that,
        ;; paste it back in.
        (when content
          ;; A special case for verbatim blocks.. need to escape "*" and "#+"
          ;; with commas -- (org) Literal examples.
          ;; http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00349.html
          (when (save-excursion
                  (previous-line)
                  (forward-line 0)
                  (let* ((case-fold-search t)) ;Ignore case
                    (looking-at-p (concat "^[[:blank:]]*#\\+BEGIN_"
                                          (regexp-opt '("EXAMPLE" "EXPORT" "SRC"))))))
            (setq content (org-escape-code-in-string content)))
          (insert content)
          (deactivate-mark)
