diff options
author | Alan Pearce | 2017-04-21 20:38:39 +0200 |
---|---|---|
committer | Alan Pearce | 2017-04-21 20:38:39 +0200 |
commit | 2d2bcaa101b46d8c139c1f679e4f679b6ab5af04 (patch) | |
tree | c9858c958b75e0362cbcf8ac2f5ee4c20346c523 | |
parent | 0c35d3d3e99aa95c07ad76dac62c002500115b9b (diff) | |
download | dotfiles-2d2bcaa101b46d8c139c1f679e4f679b6ab5af04.tar.lz dotfiles-2d2bcaa101b46d8c139c1f679e4f679b6ab5af04.tar.zst dotfiles-2d2bcaa101b46d8c139c1f679e4f679b6ab5af04.zip |
Emacs: Remove dash library usage
Emacs lisp already includes seq- functions which work as expected
-rw-r--r-- | emacs/.emacs.d/init.org | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index 0f43c84..4a1d757 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -120,10 +120,6 @@ Ring the bell sometimes, but not so often (ding)))) #+END_SRC -#+BEGIN_SRC emacs-lisp -(use-package dash) -#+END_SRC - ** Colours Let’s try a more minimal theme. @@ -329,7 +325,7 @@ modes. (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 @@ helps to make documentation for other languages easier to access `(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))))) |