]> git.eshelyaron.com Git - emacs.git/commitdiff
Use add-to-list instead of manually modifying minor-mode-alist
authorPhilip Kaludercic <philipk@posteo.net>
Sat, 19 Jun 2021 08:43:26 +0000 (10:43 +0200)
committerPhilip Kaludercic <philipk@posteo.net>
Sat, 19 Jun 2021 08:43:26 +0000 (10:43 +0200)
lisp/net/rcirc.el

index 561589c45801020a54e1979e2b5b111109477825..9e14d1b12acadddb1990d64b85dd07bb6b502102 100644 (file)
@@ -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'."