I just read a rant about Emacs Wiki and it’s alternative: The Wikemacs Experiment: 300 Days Later. Check out How Emacs Wiki Works for some context from my point of view. Anyway, the anonymous author says: “Maybe someone could work with Alex to add gist-style code snippets to Oddmuse, and make it so that code can be cited inline on Wiki pages, so that anyone visiting the page is automatically looking at the most up to date version of the code.”
The Wikemacs Experiment: 300 Days Later
Let’s take this random gist as an example. Click on the “view raw” button. Use `<include text "...">` to transclude it:
(setq abg-elisp-external-dir (expand-file-name "external" abg-elisp-dir)) ; ... ; Add external projects to load path (dolist (project (directory-files abg-elisp-external-dir t "\\w+")) (when (file-directory-p project) (add-to-list 'load-path project)))
Actually, I added an Emacs Wiki feature using two lines of code that add support for fancy inclusion:
<include gist "https://gist.github.com/1236665">
It only works over there, however. See EmacsWiki:Gists.
Anyway, the same also works for *Lisppaste*:
<include text "http://paste.lisp.org/display/134703/raw">
Results in:
I don’t think there’s a nice way to include the colored version, unfortunately.
<include lisppaste "http://paste.lisp.org/display/134703">
It only works over there, of course.
#Emacs #Wikis