elisp - Emacs helm: Adding new sources to helm-mini -
helm has builtin helm-mini command includes buffers , recentf in 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 1 more package helm recent dirs provides helm interface recentd uses '(helm-source-dired-recent-dirs) source.
i trying combine 2 adding in helm-mini
(append helm-mini-default-sources '(helm-source-dired-recent-dirs)) but doesn't work. missing something?
the append form doesn't change value of helm-mini-default-sources, it, i.e., m-x helm-mini, not work. can combine setq , append or add-to-list:
(setq helm-mini-default-sources (append helm-mini-default-sources'(helm-source-dired-recent-dirs))) ;; or (add-to-list 'helm-mini-default-sources 'helm-source-dired-recent-dirs 'append) but more flexible way using plain setq because can choose source , order:
(setq helm-mini-default-sources '(helm-source-buffers-list helm-source-dired-recent-dirs helm-source-recentf helm-source-buffer-not-found)) there no needs write own helm-mini function, use built-in 1 enough.
Comments
Post a Comment