From cc47c443a3f86aa66d2719ee57c0e6e728ee655e Mon Sep 17 00:00:00 2001 From: Dylan Date: Thu, 22 Oct 2026 13:02:16 +1300 Subject: feat: Included the emacs config Some packages are built with nix and some are still built with emacs --- .../home-manager/emacs/config/lisp/insert-date.el | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 modules/home-manager/emacs/config/lisp/insert-date.el (limited to 'modules/home-manager/emacs/config/lisp/insert-date.el') 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 -- cgit v1.3.1