org-notes-file-current-year 547 B

123456789101112131415161718192021
  1. #!/bin/zsh -f
  2. YEAR=`date +"%Y"`
  3. if [[ ! -e ~/org/notes/${YEAR}.org ]] ; then
  4. touch ~/org/notes/${YEAR}.org
  5. cat <<EOF > ~/org/notes/${YEAR}.org
  6. #+Title: Notes from ${YEAR}
  7. #+AUTHOR: Sam Flint
  8. #+EMAIL: swflint@flintfam.org
  9. #+DATE: \today
  10. #+INFOJS_OPT: view:info toc:nil path:http://flintfam.org/org-info.js
  11. #+OPTIONS: toc:nil H:5 ':t *:t d:nil stat:nil todo:nil
  12. #+LATEX_CLASS_OPTIONS: [10pt,twocolumn]
  13. #+LATEX_HEADER: \usepackage[landscape,margin=0.125 in]{geometry}
  14. #+LATEX_HEADER: \pagestyle{empty}
  15. EOF
  16. fi
  17. echo ~/org/notes/${YEAR}.org