diff options
author | Grant Shangreaux <shoshin@cicadas.surf> | 2023-02-11 20:00:14 -0600 |
---|---|---|
committer | Colin Okay <cbeok@protonmail.com> | 2023-02-11 19:11:52 -0800 |
commit | 116edc60d404069ec8bc89e5af5e379aceb1c57f (patch) | |
tree | 1896e8eda1ec91774ca2f63d22971f6181ab1ecc | |
parent | 4a363f149399c39afbd074cbf5529def93a5a6d1 (diff) |
Add: parzival-indent.el for special form indentationmaster
Add: <<def <<if <<let as font-lock keywords for Emacs
-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\\>")) |