Function: doom-modeline--remove-segment-from-list

doom-modeline--remove-segment-from-list is a natively compiled function defined in doom-modeline-core.el.

Signature

(doom-modeline--remove-segment-from-list LIST SEGMENT)

Documentation

Remove SEGMENT from LIST.

Returns the modified list.

Source Code

;; Defined in /nix/store/1lcicrdd2r4b8rkc91nnn74ymk1jl6yd-emacs-packages-deps/share/emacs/site-lisp/elpa/doom-modeline-20260928.1632/doom-modeline-core.el
(defun doom-modeline--remove-segment-from-list (list segment)
  "Remove SEGMENT from LIST.
Returns the modified list."
  (cond ((null list) nil)
        ((eq (car list) segment)
         (doom-modeline--remove-segment-from-list (cdr list) segment))
        (t
         (cons (car list)
               (doom-modeline--remove-segment-from-list (cdr list) segment)))))