From 83eb4f8606b1b6894802daf1b0dc06797e6997b7 Mon Sep 17 00:00:00 2001 From: Ohad Livne Date: Tue, 24 Jun 2025 22:11:41 +0300 Subject: [PATCH] Setup the auto-mode-alist more cleanly --- .config/emacs/init.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 1ea3726..2110235 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -183,7 +183,11 @@ ;; EPUB reader (use-package nov :init - (add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode))) + (setq auto-mode-alist + (map-merge 'list + '(("\\.epub\\'" . nov-mode)) + auto-mode-alist)) + ) (use-package company :init (global-company-mode)