Helm has builtin helm-mini command which includes buffers and recentf in its sources.
(setq helm-source-buffers-list
(helm-make-source "Buffers" 'helm-source-buffers)))
(helm :sources helm-mini-default-sources
:buffer "*helm mini*"
:truncate-lines t)
There is one more package helm recent dirs which provides helm interface to recentd
It uses '(helm-source-dired-recent-dirs) as it source.
I am trying to combine those two so i am adding this in helm-mini
(append helm-mini-default-sources '(helm-source-dired-recent-dirs))
but it doesn't work. Am I missing something?
The
appendform doesn't change the value ofhelm-mini-default-sources, so it, i.e., M-x helm-mini, does not work. You can combinesetqandappendor justadd-to-list:but the more flexible way is just using a plain
setqbecause you can choose source and their order:There is no needs to write your own
helm-minifunction, use the built-in one is enough.