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)
|
(text (when (and (evil-visual-state-p) beg end)
|
||||||
(buffer-substring beg end))))
|
(buffer-substring beg end))))
|
||||||
(if bang
|
(if bang
|
||||||
;; use org-capture with bang
|
(switch-to-buffer "*scratch*")
|
||||||
(if text
|
|
||||||
(org-capture-string text)
|
|
||||||
(org-capture))
|
|
||||||
;; or scratch buffer by default
|
;; or scratch buffer by default
|
||||||
(let* ((project-dir (narf/project-root t))
|
(let* ((project-dir (narf/project-root t))
|
||||||
(buffer-name "*scratch*"))
|
(buffer-name "*scratch*"))
|
||||||
|
@ -230,6 +227,5 @@ left, create a scratch buffer."
|
||||||
(wg-save-session t)
|
(wg-save-session t)
|
||||||
(save-buffers-kill-terminal)))
|
(save-buffers-kill-terminal)))
|
||||||
|
|
||||||
|
|
||||||
(provide 'defuns-buffers)
|
(provide 'defuns-buffers)
|
||||||
;;; defuns-buffers.el ends here
|
;;; defuns-buffers.el ends here
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue