From cc1821888924933788f2759874ab7d6b0d8b1aea Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 6 Dec 2024 21:14:11 -0500 Subject: [PATCH] refactor: nconc -> add-to-list The doom-*.el files will soon be moved to separate core modules (whose load order the user can dictate); when this happens, this block could be re-evaluated anytime the user calls `doom/reload` or otherwise reloads the active profile. --- lisp/doom-editor.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lisp/doom-editor.el b/lisp/doom-editor.el index 85eaa5408..88f7a59f8 100644 --- a/lisp/doom-editor.el +++ b/lisp/doom-editor.el @@ -246,10 +246,8 @@ tell you about it. Very annoying. This prevents that." ;; ;;; Extra file extensions to support -(nconc - auto-mode-alist - '(("/LICENSE\\'" . text-mode) - ("rc\\'" . conf-mode))) +(add-to-list 'auto-mode-alist '("/LICENSE\\'" . text-mode)) +(add-to-list 'auto-mode-alist '("rc\\'" . conf-mode)) ;;