summaryrefslogtreecommitdiffstats
path: root/orgweb.el
blob: 6f32a6e73e27e597cb3537819e58444a10756238 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
;;; orgweb.el --- Helper functions for maintaining my site

;; Author: Tom Willemsen <tom@ryuslash.org>
;; 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"
  "  <script src=\"/keyjs.js\" type=\"text/javascript\"></script>\n"
  "  <script type=\"text/javascript\">\n"
  "    keyjs_initialize({ \"u\": [ \"keyjs_goto\", \"" orgweb-link-up "\" ],\n"
  "                       \"h\": [ \"keyjs_goto\", \"" orgweb-link-home "\" ] });\n"
  "  </script>\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