Emacs: Fix YASnippet expansion in insert mode
This commit is contained in:
@@ -463,7 +463,7 @@
|
||||
;;; YASnippet
|
||||
|
||||
(elpaca-setup yasnippet
|
||||
(:autoload yas-insert-snippet)
|
||||
(:autoload yas-expand yas-insert-snippet)
|
||||
(setq yas-snippet-dirs (list (expand-file-name "snippets" dot-emacs-dir)))
|
||||
(setq yas-prompt-functions '(yas-completing-prompt))
|
||||
(:when-loaded
|
||||
|
||||
@@ -59,7 +59,9 @@ Vim equivalence: <C-D>"
|
||||
"Shift line right, retains cursor position.
|
||||
Vim equivalence: <Tab>"
|
||||
(interactive)
|
||||
(insert "\t"))
|
||||
(when (not (yas-expand))
|
||||
(insert "\t")))
|
||||
|
||||
|
||||
(defun dot/evil-visual-shift-left ()
|
||||
"Shift visual selection left, retains the selection.
|
||||
|
||||
Reference in New Issue
Block a user