summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2022-06-30 20:13:39 +0800
committerJSDurand <mmemmew@gmail.com>2022-06-30 20:13:39 +0800
commite085df96d2a0ad8074c5561a1fa751ba5e4ecad3 (patch)
tree2da49a83207fc44bbf395ec7193c0d3673a62475 /init.el
parentaf5f6c3924d66104e5425220c23e51cdda9e7311 (diff)
Add primitive ABNF support
Diffstat (limited to 'init.el')
-rw-r--r--init.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/init.el b/init.el
index ca88df7..ccba9dc 100644
--- a/init.el
+++ b/init.el
@@ -147,6 +147,15 @@ no effect."
(load-after-function pdf-view-mode "pdf.el"
"Fake mode that loads the pacakge." nil (pdf-view-mode))
+;;; Prepare for ABNF
+
+(add-to-list 'auto-mode-alist
+ (cons (rx-to-string '(and ".abnf" string-end))
+ #'abnf-mode))
+
+(load-after-function abnf-mode "abnf.el"
+ "Fake mode that loads the ABNF configuration." nil (abnf-mode))
+
;;; Prepare for skeletons
(load-after-function prepare-skeletons "skeleton-conf.el"