Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Replace seq-take with its code #161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions dashboard.el
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ Optional prefix ARG says how many lines to move; default is one line."
(recentf-is-on (recentf-enabled-p))
(origial-recentf-list recentf-list)
(dashboard-num-recents (or (cdr (assoc 'recents dashboard-items)) 0))
(max-line-length 0))
(max-line-length 0)
(recentf-items '()))
;; disable recentf mode,
;; so we don't flood the recent files list with org mode files
;; do this by making a copy of the part of the list we'll use
Expand All @@ -156,8 +157,10 @@ Optional prefix ARG says how many lines to move; default is one line."
;; (this avoids many saves/loads that would result from
;; disabling/enabling recentf-mode)
(if recentf-is-on
(setq recentf-list (seq-take recentf-list dashboard-num-recents))
)
(setq recentf-list
(nreverse (while (and recentf-list (> dashboard-num-recents 0))
(setq dashboard-num-recents (1- dashboard-num-recents))
(push (pop recentf-list) recentf-items)))))
(when (or (not (eq dashboard-buffer-last-width (window-width)))
(not buffer-exists))
(setq dashboard-banner-length (window-width)
Expand Down