0

Linux Mint 20, Emacs 27.2

Install package dired, dired+

I want to show recent directories visited in the minibuffer. Something like this:

enter image description here

I tried this:

    (defun my-recent-dir ()
      (interactive)
      (message "Recent dirs: %S" (diredp-recent-dirs nil)))

with this result:

enter image description here

But I instead want to see each directory on its own line in the echo area.

1 Answer 1

1
(defun bar ()
  (interactive)
  (let ((dirs  (diredp-recent-dirs nil)))
    (message "Recent dirs: \n%s" 
             (mapconcat #'identity dirs "\n"))))
3
  • Yes, but it only show recent dir. But how I can select it? Commented Oct 2, 2021 at 14:38
  • 2
    There was no mention of selecting anything in the question. If you want an answer to that question, then ask that question (separately now - it's always a bad idea to move the goal posts after the question has been answered).
    – NickD
    Commented Oct 2, 2021 at 17:23
  • 1
    In general, the questions you've asked so far are not very clear. You don't specify what you're looking for; you just say a few words and expect others to guess exactly what you mean. Try to provide a step-by-step recipe of what you've tried, saying what you see at each step and what you expect/want to see instead.
    – Drew
    Commented Oct 2, 2021 at 17:40

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.