mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-11 13:07:28 -05:00
Remove dash/f dependencies; use cl-lib & subr-x more
This commit is contained in:
@ -214,11 +214,13 @@ file."
|
||||
,@forms))
|
||||
|
||||
(defsubst doom--prepare-modeline-segments (segments)
|
||||
(-non-nil
|
||||
(--map (if (stringp it)
|
||||
it
|
||||
(list (intern (format "doom-modeline-segment--%s" (symbol-name it)))))
|
||||
segments)))
|
||||
(delq
|
||||
nil
|
||||
(mapcar (lambda (seg)
|
||||
(if (stringp seg)
|
||||
seg
|
||||
(list (intern (format "doom-modeline-segment--%s" (symbol-name seg))))))
|
||||
segments)))
|
||||
|
||||
(defmacro @def-modeline (name lhs &optional rhs)
|
||||
"Defines a modeline format and byte-compiles it.
|
||||
|
Reference in New Issue
Block a user