I'd like to replicate something in emacs that I do in AutoHotkey all the time:
- have that string be replaced with the current date
I'm trying to do this with Emacs abbrevs but I'm running into an
Invalid function: error.
I've also tried using a builtin function, but I get the same Invalid function error. I've done a bunch of research but no avail.
Here's the code I have currently in my
(defun insert-current-iso-date () "..." (format-time-string "%Y-%m-%d")) (define-abbrev-table 'global-abbrev-table '(("td" "" (insert-current-iso-date))))