aboutsummaryrefslogtreecommitdiff
path: root/modules/home-manager/emacs/config/lisp/insert-date.el
diff options
context:
space:
mode:
authorDylan <boss@tehbox.org>2026-10-22 13:02:16 +1300
committerDylan <boss@tehbox.org>2026-10-22 17:19:36 +1300
commitcc47c443a3f86aa66d2719ee57c0e6e728ee655e (patch)
tree6e57c4e13cf07486d4a02a3652bf84a9889f97a6 /modules/home-manager/emacs/config/lisp/insert-date.el
parent008b591a0a5942ae42f4c07a5abbee4dbd2d0743 (diff)
downloadnixos-configuration-dendritic.tar.gz
nixos-configuration-dendritic.zip
feat: Included the emacs configdendritic
Some packages are built with nix and some are still built with emacs
Diffstat (limited to 'modules/home-manager/emacs/config/lisp/insert-date.el')
-rw-r--r--modules/home-manager/emacs/config/lisp/insert-date.el21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/home-manager/emacs/config/lisp/insert-date.el b/modules/home-manager/emacs/config/lisp/insert-date.el
new file mode 100644
index 0000000..ca8214f
--- /dev/null
+++ b/modules/home-manager/emacs/config/lisp/insert-date.el
@@ -0,0 +1,21 @@
+;;; package --- insert-date.el
+;;; commentary:
+;;; Package to insert a date
+
+;;; CODE:
+
+(defcustom insert-date-format
+ "%m-%d-%Y"
+ "Format for the `insert-date' function."
+ :type '(string)
+ :group 'insert-date)
+
+(defun insert-date ()
+ "Insert the date into the curret buffer.
+Format can be changed with `insert-date-format'."
+ (interactive)
+ (insert (format-time-string insert-date-format (current-time))))
+
+(provide 'insert-date)
+
+;;; insert-date.el ends here