Emacs Lisp Blog Post:

Emacs Lisp code: Insert a NoteCase-like Date/Time with F5
11/14/2015

Post Below
11/14/2015 - Emacs Lisp code: Insert a NoteCase-like Date/Time with F5 (Emacs Lisp - Code Snippet)

    Hide/Show:


   ▲ Top  ▼ Bottom  △ TOC
Emacs Lisp code: Insert a NoteCase-like Date/Time with F5
Saturday, November 14th, 2015
15:16:18 GMT

Emacs Lisp
Code Snippet

The below Emacs Lisp code, which simply inserts a date/time like "2015-11-14 10:01:14" when you press F5, was a slight modification of code I found at this StackOverflow page:

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


I used "defcustom" and "setq" instead of "defvar" alone because of tips from this page from ErgoEmacs.org:

Emacs Lisp "defvar" Doesn't Override


   ▲ Top  ▼ Bottom  △ TOC


    Hide/Show: