Fork me on GitHub
#emacs
<
2018-12-20
>
baptiste-from-paris09:12:40

hello friends, As a newbie in elisp : I don’t know how to get a map-indexed, any idea ?

mgrbyte12:12:32

seq-map-indexed should work

mgrbyte12:12:44

e.g, try evaluating: (seq-map-indexed (lambda (x y) (format "%s %s" x y)) '(1 2 3))

cmack14:12:34

@baptiste-from-paris just in case you haven’t found it, M-x apropos (bound to C-h a by default IIRC) is a great way to search for things within emacs. If you have something like helm or counsel installed and configured, they have commands that make filtering apropos results easier with fuzzy match…

baptiste-from-paris14:12:49

Built my map-indexed 😅

danielcompton20:12:02

This is very cool. I tried magithub, but I found it to be quite slow and a little bit buggy

practicalli-john20:12:23

@danielcompton Magithub can be slow if its always 'online'. Recent Spacemacs config sets Magithub to go 'online' when the user asks (to update pull requests / issues from the project). When 'offline', magithub does not slow down magit.

danielcompton20:12:26

There's two parts to 'slow', I found it very slow on initial download, and yes the default of always online makes things even worse in day-to-day usage

danielcompton20:12:36

But it was the initial download being slow that stopped me going any further with it

danielcompton20:12:55

Also, it seemed to break my (uncustomised) magit status buffer

danielcompton21:12:32

But I appreciate the author creating it