Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save elfsternberg/f1b81ae743ab0672d197360d3cd6e548 to your computer and use it in GitHub Desktop.
Save elfsternberg/f1b81ae743ab0672d197360d3cd6e548 to your computer and use it in GitHub Desktop.
;; Old-school noweb in poly mode for emacs, now with Markdown. This does require one
;; bit of sed (perl, whatever) to work properly: you'll have to find all the chunks
;; that start with '<<...>>=' and remove the polymode ending indicating the language type.
(use-package poly-noweb
:ensure
:config
(require 'poly-markdown)
(define-obsolete-variable-alias 'pm-host/markdown-for-noweb 'poly-noweb-markdown-hostmode "v0.2")
(define-hostmode poly-noweb-markdown-hostmode poly-markdown-hostmode)
(define-polymode poly-noweb-mode
:hostmode 'poly-markdown-hostmode
:innermodes '(poly-noweb-auto-innermode
poly-noweb-inline-innermode)
:keylist '(("<" . poly-noweb-electric-<))))
(provide 'poly-noweb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment