refactor: modularize ai and development configurations
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
;;; development/misc.el -*- lexical-binding: t; -*-
|
||||
|
||||
(use-package! bnf-mode
|
||||
:mode "\\.bnf\\'"
|
||||
:config
|
||||
;; Optional: Add any custom configuration here
|
||||
(setq bnf-mode-hook
|
||||
(lambda ()
|
||||
;; Enable line numbers
|
||||
(display-line-numbers-mode)
|
||||
;; Enable auto-pairing of angle brackets
|
||||
(modify-syntax-entry ?< "(>" bnf-mode-syntax-table)
|
||||
(modify-syntax-entry ?> ")<" bnf-mode-syntax-table))))
|
||||
|
||||
(use-package! ebnf-mode
|
||||
:mode "\\.ebnf\\'"
|
||||
:config
|
||||
;; Optional customizations:
|
||||
(setq ebnf-mode-indent-offset 4) ; Default is 8 spaces
|
||||
(setq ebnf-mode-indent-by-production t) ; Align with the '=' in productions
|
||||
(setq ebnf-mode-comment-char ?\;) ; Use ; for comments
|
||||
(setq ebnf-mode-eop-char ?\.)) ; Use . for end of production
|
||||
|
||||
;; Justfile mode (psibi/justl.el)
|
||||
(use-package! justl
|
||||
:config
|
||||
(map! :n "e" 'justl-exec-recipe))
|
||||
Reference in New Issue
Block a user