Skip to content

Commit adee17b

Browse files
committed
added an emacs mode for Folly theorem files
1 parent 2b170bb commit adee17b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

FollyMajorMode.el

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
(setq folly-keywords
2+
'(("HYPOTHESIS:\\|CONCLUSION:" . font-lock-keyword-face)
3+
("&\\|->\\|~\\|<->\\|\|" . font-lock-builtin-face)
4+
("V\\|E\\|\\." . font-lock-string-face)))
5+
6+
(define-derived-mode folly-mode fundamental-mode
7+
(setq font-lock-defaults '(folly-keywords))
8+
(setq mode-name "folly-mode"))
9+
10+
(add-to-list 'auto-mode-alist '("\\.folly\\'" . folly-mode))
11+
12+
(provide 'folly-mode)

0 commit comments

Comments
 (0)