all repos — archive/dotfiles @ 2d2bcaa101b46d8c139c1f679e4f679b6ab5af04

Superseded by nixfiles

Emacs: Remove dash library usage

Emacs lisp already includes seq- functions which work as expected
Alan Pearce alan@alanpearce.uk
Fri, 21 Apr 2017 20:38:39 +0200
commit

2d2bcaa101b46d8c139c1f679e4f679b6ab5af04

parent

0c35d3d3e99aa95c07ad76dac62c002500115b9b

1 files changed, 4 insertions(+), 8 deletions(-)

jump to
M emacs/.emacs.d/init.orgemacs/.emacs.d/init.org
@@ -120,10 +120,6 @@ '(isearch-abort abort-recursive-edit exit-minibuffer keyboard-quit undo-tree-undo))           (ding))))
 #+END_SRC
 
-#+BEGIN_SRC emacs-lisp
-(use-package dash)
-#+END_SRC
-
 ** Colours
 
 Let’s try a more minimal theme.
@@ -329,7 +325,7 @@ :config (progn               (setq cyphejor-rules `(("emacs"       "ε")
                                      ("diff"        "Δ")
                                      ("js2"         "js")
-                                     ("magit-status" ,(char-to-string (-find #'char-displayable-p '(11942 5848 177))))
+                                     ("magit-status" ,(char-to-string (seq-find #'char-displayable-p '(11942 5848 177))))
                                      ("inferior"    "i" :prefix)
                                      ("interaction" "i" :prefix)
                                      ("interactive" "i" :prefix)
@@ -1125,9 +1121,9 @@ (hook (intern (concat mode-s "-mode-hook"))))     `(progn
        (defun ,fun ()
          (when (require 'counsel-dash nil :noerror)
-           (-each (-difference ',docsets
-                               (helm-dash-installed-docsets))
-             #'counsel-dash-install-docset)
+           (seq-map #'counsel-dash-install-docset
+             (seq-difference ',docsets
+                                  (helm-dash-installed-docsets)))
            (setq-local counsel-dash-docsets ',docsets)))
        (add-hook (quote ,hook) (function ,fun)))))