0

The binding works, though I'm still required to input the directory /home/foo/Pictures.

What do I have to change?

init.el:

  (spacemacs/set-leader-keys "jI"
    (lambda ()
      (interactive)
      (call-interactively #'image-dired "/home/foo/Pictures")))

1 Answer 1

1

The signature of call-interactively is:

(call-interactively FUNCTION &optional RECORD-FLAG KEYS)

In particular, you can't pass arguments to the callee in the way you attempt.

This should work instead:

(spacemacs/set-leader-keys "jI"
    (lambda ()
      (interactive)
      (image-dired "/home/foo/Pictures")))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.