Search code examples
datetimeemacstimestamptext-editor

How can I insert current date and time into a file using Emacs?


What commands in Emacs can I use to insert into the text buffer of a file the current date and time?

(For example, the equivalent in Notepad is simply pressing F5 which is about the only useful feature for Notepad!)


Solution

  • C-u M-! date