SunDawning avatar

klipse and org-mode

sundawning

Published: 10 May 2018 › Updated: 10 May 2018klipse and org-mode

klipse and org-mode

Based on blog "A new way of blogging about Common Lisp"
http://blog.klipse.tech/lisp/2018/05/07/blog-common-lisp.html
, I temporarilly(<2018-05-10 Thu 16:50:21 UTC+08:00>) find one way to use klipse in org-mode:

  1. Set org src block header ":exports none"
  2. Make a src block mirror in "#+BEGIN_QUOTE"
  3. klipse configure must be after all src blocks

Shaped like:

#+BEGIN_SRC lisp :exports none
(print "hello")
#+END_SRC

#+ATTR_HTML: :class language-klipse-clisp
#+BEGIN_QUOTE
(print "hello common lisp")
#+END_QUOTE

#+BEGIN_EXPORT html
<link rel="stylesheet" type="text/css" href="https://storage.googleapis.com/app.klipse.tech/css/codemirror.css">
<script>
window.klipse_settings = {
    codemirror_options_in: {
        lineWrapping: true,
        autoCloseBrackets: true
    },
    codemirror_options_out: {
        lineWrapping: true
    },
    beautify_strings: true,
    selector_eval_clisp: '.language-klipse-clisp',
};
</script>
<script src="https://storage.googleapis.com/app.klipse.tech/plugin_prod/js/klipse_plugin.min.js?v=7.4.0">
</script>
#+END_EXPORT

When opening the exported html in browser:

Leave klipse and org-mode to:

Written by

Read more #common-lisp posts


Best Posts From SunDawning

We have not curated any of sundawning's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From SunDawning