-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlevy.el
19 lines (18 loc) · 817 Bytes
/
levy.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(require 'generic-x) ;; we need this
(define-generic-mode
'levy-mode ;; name of the mode to create
'("#") ;; comments start with '!!'
'("if" "then" "else"
"fun") ;; some keywords
'(("->" . 'font-lock-constant-face)
(":" . 'font-lock-constant-face)
("return" . 'font-lock-builtin-face)
("thunk" . 'font-lock-builtin-face)
("force" . 'font-lock-builtin-face)
("do" . 'font-lock-function-name-face)
("let" . 'font-lock-function-name-face)
)
'("\\.levy$") ;; files for which to activate this mode
nil ;; other functions to call
"A mode for Levy files" ;; doc string for this mode
)