From caa5ba5e02587973dd2febd5fc2b518ad18f8ae5 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Tue, 8 Oct 2024 18:24:52 +0300 Subject: emacs: Add org-table-insert-numbers. --- .config/emacs/init.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '.config/emacs/init.el') 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/thanosapollo@fastmail.com" "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)) -- cgit v1.2.3