mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-31 14:43:40 -05:00
x! now opens scratch buffer in main window
This commit is contained in:
@@ -198,10 +198,7 @@ left, create a scratch buffer."
|
||||
(text (when (and (evil-visual-state-p) beg end)
|
||||
(buffer-substring beg end))))
|
||||
(if bang
|
||||
;; use org-capture with bang
|
||||
(if text
|
||||
(org-capture-string text)
|
||||
(org-capture))
|
||||
(switch-to-buffer "*scratch*")
|
||||
;; or scratch buffer by default
|
||||
(let* ((project-dir (narf/project-root t))
|
||||
(buffer-name "*scratch*"))
|
||||
@@ -230,6 +227,5 @@ left, create a scratch buffer."
|
||||
(wg-save-session t)
|
||||
(save-buffers-kill-terminal)))
|
||||
|
||||
|
||||
(provide 'defuns-buffers)
|
||||
;;; defuns-buffers.el ends here
|
||||
|
Reference in New Issue
Block a user