Skip to content

Instantly share code, notes, and snippets.

View beoliver's full-sized avatar

Benjamin Oliver beoliver

View GitHub Profile
(defun note ()
"Create and edit a new Markdown note in a temporary buffer.
This function generates a new buffer with a Markdown document based on the current timestamp
in the iCloud directory '~/Library/Mobile Documents/com~apple~CloudDocs/Notes/'.
The buffer is not associated with any file until explicitly saved by the user. When the
function is called interactively, it opens a new buffer for editing the Markdown note.
The Markdown buffer is initialized with a timestamped heading, allowing you to start
writing notes immediately. The buffer remains unsaved until the user chooses to save