summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"