Created
May 20, 2024 01:28
-
-
Save elfsternberg/f1b81ae743ab0672d197360d3cd6e548 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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