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.”
=> Emacs Wiki | The Wikemacs Experiment: 300 Days Later | How Emacs Wiki Works
Let’s take this random gist as an example. Click on the “view raw” button. Use <include text "...">
to transclude it:
=> this random gist | transclude
(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:
It only works over there, however. See EmacsWiki:Gists.
Anyway, the same also works for Lisppaste:
Results in:
I don’t think there’s a nice way to include the colored version, unfortunately.
It only works over there, of course.
#Emacs #Wikis
text/gemini
This content has been proxied by September (ba2dc).