x! now opens scratch buffer in main window
This commit is contained in:
parent
d9c86214b1
commit
7d266dd728
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue