diff options
-rw-r--r-- | README.org | 2 | ||||
-rw-r--r-- | parzival-indent.el | 5 |
2 files changed, 7 insertions, 0 deletions
@@ -7,6 +7,8 @@ Check out the [[https://codeberg.org/hypergoof/parzival/src/branch/master/examples/Tutorial.org][Tutorial]] for a detailed introduction. + If you use Emacs, load [[./parzival-indent.el]] to get custom indentation + and keyword highlighting for parzival's special forms. ** A Neat / Dumb Example diff --git a/parzival-indent.el b/parzival-indent.el new file mode 100644 index 0000000..2cc3c7a --- /dev/null +++ b/parzival-indent.el @@ -0,0 +1,5 @@ +(put '<<def 'common-lisp-indent-function '(as lambda)) +(put '<<if 'common-lisp-indent-function '(as if)) +(put '<<let 'common-lisp-indent-function '(as let)) + +(font-lock-add-keywords 'lisp-mode '("<<\\<def\\>" "<<\\<if\\>" "<<\\<let\\>")) |