Skip to content

Commit

Permalink
refactor(core): remove unneeded checks in persistent scratch
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Dec 7, 2023
1 parent e1cf22a commit 5bccc99
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions core/me-lib.el
Original file line number Diff line number Diff line change
Expand Up @@ -1870,12 +1870,9 @@ current project. When SAME-WINDOW-P is non-nil, open in the current window."
(string-match-p "^ ?\\*" (buffer-name)))
major-mode)
((symbolp +scratch-initial-major-mode)
+scratch-initial-major-mode)
((null +scratch-initial-major-mode)
nil)))
+scratch-initial-major-mode)))
default-directory
(when-let ((project (project-current))
project-p)
(when-let ((project (and project-p (project-current))))
(project-name project)))))

(defun +switch-to-scratch-buffer (&optional arg project-p)
Expand Down

0 comments on commit 5bccc99

Please sign in to comment.