From 9b1789697d0afd39dae003ca800bab0db73de05b Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 3 Sep 2021 21:49:48 -0500 Subject: Big refactor --- early-init.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'early-init.el') diff --git a/early-init.el b/early-init.el index 9f8e7f0..2fcee66 100644 --- a/early-init.el +++ b/early-init.el @@ -224,7 +224,14 @@ package. This macro is not repeatable." :repeatable nil :shorthand (lambda (sexp) (let ((recipe (cadr sexp))) - (if (consp recipe) (car recipe) recipe))))) + (if (consp recipe) (car recipe) recipe)))) + ;; Hotfix + (setup-define :file-match + (lambda (pat) + `(add-to-list 'auto-mode-alist (cons ,pat ',(setup-get 'mode)))) + :documentation "Associate the current mode with files that match PAT." + :debug '(form) + :repeatable t)) ;;; `no-littering' (setup (:straight no-littering) -- cgit 1.4.1-21-gabe81