Remove dash/f dependencies; use cl-lib & subr-x more

This commit is contained in:
Henrik Lissner 2017-02-19 18:02:40 -05:00
parent 704099a7b9
commit 2d5d826177
11 changed files with 83 additions and 123 deletions

View file

@ -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.