Skip to content

Commit 1aa28d9

Browse files
authored
core-spacemacs-buffer: fixed a bug
There is an unreported bug that when startup list is set to shown `recents-by-project`, Emacs reports that `projectile-mode` is an unknown symbol. This commit fixed this bug by checking the existence of `projectile-mode`, which is automatically loaded during startup.
1 parent 42b6ff3 commit 1aa28d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/core-spacemacs-buffer.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,8 @@ SEQ, START and END are the same arguments as for `cl-subseq'"
13861386
(spacemacs-buffer//insert-errors)
13871387
(spacemacs-buffer//insert-warnings))
13881388
((eq el 'recents) (spacemacs-buffer//insert-recent-files list-size))
1389-
((eq el 'recents-by-project)
1389+
((and (eq el 'recents-by-project)
1390+
(fboundp 'projectile-mode))
13901391
(spacemacs-buffer//insert-recent-files-by-project list-size))
13911392
((eq el 'todos) (spacemacs-buffer//insert-todos list-size))
13921393
((eq el 'agenda) (spacemacs-buffer//insert-agenda list-size))

0 commit comments

Comments
 (0)