From e74c116c0e6acc35aba76f82f516e1a31283ef61 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sun, 1 Jul 2012 17:30:37 +0200 Subject: Add orgweb.el orgweb.el contains some helper functions for maintaining my website. --- orgweb.el | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 orgweb.el diff --git a/orgweb.el b/orgweb.el new file mode 100644 index 0000000..6f32a6e --- /dev/null +++ b/orgweb.el @@ -0,0 +1,58 @@ +;;; orgweb.el --- Helper functions for maintaining my site + +;; Author: Tom Willemsen +;; Created: Jul 1, 2012 +;; Version: 1 + +;;; Commentary: + +;; Just for personal use really. Of course, feel free to use any or +;; all parts of this file. + +;;; Code: + +;;;###autoload +(define-skeleton orgweb-new-project + "A skeleton for creating a new project page for my site." + "" + '(find-file (concat "~/code/projects/orgweb/site/projects/" + (downcase (setq orgweb-project-name + (skeleton-read "Title: "))) + ".org")) + "#+TITLE: " orgweb-project-name "\n" + "#+LINK_UP: " (setq orgweb-link-up (skeleton-read "Up: ")) "\n" + "#+LINK_HOME: " (setq orgweb-link-home (skeleton-read "Home: ")) "\n" + "#+LINK: src https://github.com/ryuslash/" (downcase orgweb-project-name) "\n" + "#+LINK: tar_gz https://github.com/ryuslash/" (downcase orgweb-project-name) "/tarball/master\n" + "#+LINK: zip https://github.com/ryuslash/" (downcase orgweb-project-name) "/zipball/master\n" + "#+STARTUP: showall\n" + "\n" + "#+begin_html\n" + " \n" + " \n" + "#+end_html\n" + "\n" + "#+include: \"dlmenu.inc\"\n" + "\n" + "* About\n" + "\n" + " " _ "\n" + "\n" + "** Features\n" + "\n" + " - \n" + "\n" + "** Requirements\n" + "\n" + " - \n" + "\n" + "* Usage\n" + "\n" + " ") + +(provide 'orgweb) + +;;; orgweb.el ends here -- cgit v1.2.3-54-g00ecf