From 869db473cbd510270faec2ba43dd4a5ba10b0020 Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Sat, 19 Jun 2021 10:43:26 +0200 Subject: [PATCH] Use add-to-list instead of manually modifying minor-mode-alist --- lisp/net/rcirc.el | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index 561589c4580..9e14d1b12ac 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el @@ -2104,12 +2104,8 @@ This function does not alter the INPUT string." (remove-hook 'window-configuration-change-hook 'rcirc-window-configuration-change))) -(or (assq 'rcirc-ignore-buffer-activity-flag minor-mode-alist) - (setq minor-mode-alist - (cons '(rcirc-ignore-buffer-activity-flag " Ignore") minor-mode-alist))) -(or (assq 'rcirc-low-priority-flag minor-mode-alist) - (setq minor-mode-alist - (cons '(rcirc-low-priority-flag " LowPri") minor-mode-alist))) +(add-to-list 'minor-mode-alist '(rcirc-ignore-buffer-activity-flag " Ignore")) +(add-to-list 'minor-mode-alist '(rcirc-low-priority-flag " LowPri")) (defun rcirc-toggle-ignore-buffer-activity () "Toggle the value of `rcirc-ignore-buffer-activity-flag'." -- 2.39.2