summaryrefslogtreecommitdiff
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
parentaf5f6c3924d66104e5425220c23e51cdda9e7311 (diff)
Add primitive ABNF support
-rw-r--r--abnf.el1
-rw-r--r--init.el9
2 files changed, 10 insertions, 0 deletions
diff --git a/abnf.el b/abnf.el
new file mode 100644
index 0000000..b492323
--- /dev/null
+++ b/abnf.el
@@ -0,0 +1 @@
+(use-package "abnf-mode" 'abnf-mode)
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"