diff options
| author | Andrey Orst <andreyorst@gmail.com> | 2021-01-19 16:46:00 +0000 |
|---|---|---|
| committer | Andrey Orst <andreyorst@gmail.com> | 2021-01-19 16:46:00 +0000 |
| commit | 92812d03922fd4c3ba85364b59e63236e7cfcd8a (patch) | |
| tree | 6504ecb114419b0dd3055e509abd8b602586f614 /.dir-locals.el | |
| parent | a2b08f721c28b3b56a802031bc35df6a68b219d8 (diff) | |
| parent | 270beed0505ef47159d94fb162ff4840958f3ce5 (diff) | |
fix: Fennel 0.8.0 enhancements
Changelog:
- fixed bug in try
- reworked pretty printing for sets
- handle cycles in sets
- use new fennel.view format
- reorganized library to make requiring it easier
Diffstat (limited to '.dir-locals.el')
| -rw-r--r-- | .dir-locals.el | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/.dir-locals.el b/.dir-locals.el index 6036615..bf3fb90 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -1,7 +1,28 @@ ;;; Directory Local Variables ;;; For more information see (info "(emacs) Directory Variables") -((fennel-mode . ((eval . (put 'when-meta 'fennel-indent-function 'defun)) +((fennel-mode . ((eval . (font-lock-add-keywords + 'fennel-mode + `((,(rx word-start + (group (or "fn*" + "try" + "if-let" + "if-some" + "when-let" + "when-some" + "empty" + "into" + "when-meta" + "with-meta" + "meta" + "meta" + "def" + "defmulti" + "defmethod" + "defonce")) + word-end) + 1 'font-lock-keyword-face)))) + (eval . (put 'when-meta 'fennel-indent-function 'defun)) (eval . (put 'defmethod 'fennel-indent-function 'defun)) (eval . (put 'defmulti 'bfennel-indent-function 'defun)) (eval . (put 'deftest 'fennel-indent-function 'defun)) |