Skip to content

Instantly share code, notes, and snippets.

@howardabrams
Created November 2, 2021 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save howardabrams/f343ba4f657c38ebd499b165082e31d4 to your computer and use it in GitHub Desktop.
Save howardabrams/f343ba4f657c38ebd499b165082e31d4 to your computer and use it in GitHub Desktop.
#+TITLE: ${1:`(->> (buffer-file-name)
(file-name-base)
(s-split-words)
(--map (s-capitalize it))
(s-join " "))`}
#+AUTHOR: `user-full-name`
#+EMAIL: `user-mail-address`
#+DATE: `(format-time-string "%Y-%m-%d")`
@howardabrams
Copy link
Author

This is useful for Emacs YASnippet for converting a filename into a title.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment