Fix doom-buffers-in-mode
This commit is contained in:
parent
87a93b1d82
commit
063cb29f8f
1 changed files with 3 additions and 2 deletions
|
@ -69,8 +69,9 @@ the current workspace."
|
|||
(defun doom-buffers-in-mode (modes &optional buffer-list)
|
||||
"Get a list of all buffers (in the current workspace OR in BUFFER-LIST) whose
|
||||
`major-mode' is one of MODES."
|
||||
(cl-remove-if-not (lambda (buf) (memq (buffer-local-value 'major-mode it) modes))
|
||||
(or buffer-list (doom-buffer-list))))
|
||||
(let ((modes (if (listp modes) modes (list modes))))
|
||||
(cl-remove-if-not (lambda (buf) (memq (buffer-local-value 'major-mode buf) modes))
|
||||
(or buffer-list (doom-buffer-list)))))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom-visible-windows (&optional window-list)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue