title: Emacs function to open file [current date].tex
body: <p>I'm trying to write an emacs function that uses the current date to create a file. I'm new to emacs and so I'm having trouble with variables and syntax. Here's what I have:</p>
  
  <pre><code>(defun daily ()
      (interactive)
      (let daily-name (format-time-string "%T"))
      (find-file (daily-name)))
  </code></pre>
  
  <p>I don't understand how emacs uses variables well enough to get it to set the time string as a variable and feed that variable into the find-file function. Any help is appreciated. </p>