Skip to content
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

Remove (require 'seq) #165

Merged
merged 1 commit into from
Jul 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 8 additions & 4 deletions dashboard.el
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

;;; Code:

(require 'seq)
(require 'page-break-lines)
(require 'recentf)

Expand Down Expand Up @@ -145,16 +144,21 @@ 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
;; let dashboard widgets change that
;; then restore the orginal list afterwards
;; (this avoids many saves/loads that would result from
;; disabling/enabling recentf-mode)
(if recentf-is-on
JesusMtnez marked this conversation as resolved.
Show resolved Hide resolved
(setq recentf-list (seq-take recentf-list dashboard-num-recents)))
(when recentf-is-on
(let ((item-count 0))
(while (< item-count dashboard-num-recents)
(push (nth item-count recentf-list) recentf-items)
(setq item-count (1+ item-count))))
(setq recentf-list (reverse recentf-items)))
(when (or (not (eq dashboard-buffer-last-width (window-width)))
(not buffer-exists))
(setq dashboard-banner-length (window-width)
Expand Down