Only expand emmet snippets if at word boundary
Makes emmet a little less aggressive on TAB. Addresses #3383
This commit is contained in:
parent
5940d931f4
commit
73565f1041
1 changed files with 3 additions and 1 deletions
|
@ -122,7 +122,9 @@ snippet, or `emmet-expand-yas'/`emmet-expand-line', depending on whether
|
|||
`yas-minor-mode' is enabled or not."
|
||||
(interactive)
|
||||
(call-interactively
|
||||
(cond ((<= (current-column) (current-indentation))
|
||||
(cond ((or (<= (current-column) (current-indentation))
|
||||
(not (eolp))
|
||||
(not (memq (char-after) (list ?\n ?\s ?\t))))
|
||||
#'indent-for-tab-command)
|
||||
((bound-and-true-p yas-minor-mode)
|
||||
(if (yas--templates-for-key-at-point)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue