Skip to content

Commit

Permalink
No longer depend on dash
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed May 22, 2020
1 parent bc1edab commit 36d39bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PKG = minions
ELS = $(PKG).el
ELCS = $(ELS:.el=.elc)

DEPS = dash
DEPS =

EMACS ?= emacs
EMACS_ARGS ?=
Expand Down
7 changes: 4 additions & 3 deletions minions.el
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
;;; Code:

(require 'cl-lib)
(require 'dash)
(require 'seq)

(eval-when-compile
(require 'subr-x))
Expand Down Expand Up @@ -152,8 +152,9 @@ mouse-3: Toggle minor modes"
'mouse-face 'mode-line-highlight
'local-map (make-mode-line-mouse-map
'mouse-2 #'mode-line-widen))
`(:propertize ("" (:eval (--filter (memq (car it) minions-direct)
minor-mode-alist)))
`(:propertize ("" (:eval (seq-filter (pcase-lambda (`(,mode))
(memq mode minions-direct))
minor-mode-alist)))
mouse-face mode-line-highlight
help-echo "Minor mode
mouse-1: Display minor mode menu
Expand Down

0 comments on commit 36d39bd

Please sign in to comment.