summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-10-08 18:24:52 +0300
committerThanos Apollo <[email protected]>2024-10-08 18:24:52 +0300
commitcaa5ba5e02587973dd2febd5fc2b518ad18f8ae5 (patch)
tree2b73092723b62d59eac50d0b7e1435c33c441ee9
parent855546f3416e0878df79d0a9123613988977f1cd (diff)
emacs: Add org-table-insert-numbers.
-rw-r--r--.config/emacs/init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index b069d2b..3ab5d84 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -1354,6 +1354,12 @@ Create a temporary frame to execute BODY, which will then be deleted."
(interactive)
(password-store-copy-field "fastmail.com/[email protected]" "smtp"))
+(defun org-table-insert-numbers (str end)
+ "Used to insert numbers for verses in org tables."
+ (interactive "nStart: \nnEnd: ")
+ (dotimes (i (1+ (- end str)))
+ (insert (format "%s" (+ i str)))
+ (org-return)))
(require 'server)
(unless (server-running-p)
(server-start))