Emacs anywhere: in case empty selection, behave

This commit is contained in:
tecosaur 2020-03-01 21:23:04 +08:00
parent 5820b17fe2
commit 26c75c6297
1 changed files with 1 additions and 1 deletions

View File

@ -445,7 +445,7 @@ for ~GFM~, otherwise let's just use ~markdown~.
(t (org-mode)) ; default major mode
)
(insert (gui-get-selection 'PRIMARY))
(when (gui-get-selection 'PRIMARY) (insert (gui-get-selection 'PRIMARY)))
(evil-insert-state) ; start in insert
(when (centaur-tabs-mode) (centaur-tabs-local-mode t)) ; disable tabs