From 673d3ed147ce447d72196c2672e2a133c7f220e0 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 16 May 2018 13:14:23 +0200 Subject: [PATCH] Prevent duplicate entries in doom-auto-minor-mode-alist --- core/core-lib.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-lib.el b/core/core-lib.el index 22f272579..460c828f5 100644 --- a/core/core-lib.el +++ b/core/core-lib.el @@ -228,7 +228,7 @@ Body forms can access the hook's arguments through the let-bound variable collect `(add-hook ',hook ',hook-name)) `((add-hook 'after-change-major-mode-hook ',hook-name)))))) (match - `(push (cons ,match ',mode) doom-auto-minor-mode-alist)) + `(map-put doom-auto-minor-mode-alist ,match ',mode)) (t (user-error "associate! invalid rules for mode [%s] (modes %s) (match %s) (files %s)" mode modes match files))))))