mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
region-aware narf/org-surround
This commit is contained in:
@ -111,7 +111,14 @@
|
|||||||
;; Formatting shortcuts
|
;; Formatting shortcuts
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun narf/org-surround (delim)
|
(defun narf/org-surround (delim)
|
||||||
(insert delim) (save-excursion (insert delim)))
|
(if (region-active-p)
|
||||||
|
(save-excursion
|
||||||
|
(goto-char (region-beginning))
|
||||||
|
(insert delim)
|
||||||
|
(goto-char (region-end))
|
||||||
|
(insert delim))
|
||||||
|
(insert delim)
|
||||||
|
(save-excursion (insert delim))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun narf/org-word-count (beg end &optional count-footnotes?)
|
(defun narf/org-word-count (beg end &optional count-footnotes?)
|
||||||
|
Reference in New Issue
Block a user