mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Refactor defuns-buffers.el
This commit is contained in:
@ -105,9 +105,7 @@ the buffer if it is being displayed in another window."
|
|||||||
(narf/popup-close)
|
(narf/popup-close)
|
||||||
(unless (narf/real-buffer-p (current-buffer))
|
(unless (narf/real-buffer-p (current-buffer))
|
||||||
(narf/previous-real-buffer)
|
(narf/previous-real-buffer)
|
||||||
(when (and (string-match-p "^\\*scratch\\*" (buffer-name)) new-dir)
|
(narf|update-scratch-buffer-cwd)))))
|
||||||
(setq header-line-format new-dir)
|
|
||||||
(setq default-directory new-dir))))))
|
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun narf/kill-unreal-buffers ()
|
(defun narf/kill-unreal-buffers ()
|
||||||
@ -169,7 +167,7 @@ left, create a scratch buffer."
|
|||||||
(switch-to-buffer "*scratch*")
|
(switch-to-buffer "*scratch*")
|
||||||
(message "Nowhere to go"))
|
(message "Nowhere to go"))
|
||||||
(funcall move-func)
|
(funcall move-func)
|
||||||
(while (and continue )
|
(while (and continue)
|
||||||
(let ((current-buffer (current-buffer)))
|
(let ((current-buffer (current-buffer)))
|
||||||
(cond ((or (eq current-buffer start-buffer)
|
(cond ((or (eq current-buffer start-buffer)
|
||||||
(>= i max))
|
(>= i max))
|
||||||
|
Reference in New Issue
Block a user