org-notes-file 672 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. YEAR=$1
  3. if [ ! -e "${HOME}/org/notes/${YEAR}.org" ] ; then
  4. touch "${HOME}/org/notes/${YEAR}.org"
  5. cat <<EOF > "${HOME}/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 "${HOME}/org/notes/${YEAR}.org"
  18. cd "${HOME}/org/" || exit 1
  19. git add "notes/${YEAR}.org" && git commit -m "Added the notes file for ${YEAR}"