mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
only hippie-expand when yas/minor-mode is on
This commit is contained in:
parent
b7c54b8c6c
commit
5ed6adadce
11
yasnippet.el
11
yasnippet.el
@ -2026,11 +2026,12 @@ will only be expanded when the condition evaluated to non-nil."
|
|||||||
(defun yas/hippie-try-expand (first-time?)
|
(defun yas/hippie-try-expand (first-time?)
|
||||||
"Integrate with hippie expand. Just put this function in
|
"Integrate with hippie expand. Just put this function in
|
||||||
`hippie-expand-try-functions-list'."
|
`hippie-expand-try-functions-list'."
|
||||||
(if (not first-time?)
|
(when yas/minor-mode
|
||||||
(let ((yas/fallback-behavior 'return-nil))
|
(if (not first-time?)
|
||||||
(yas/expand))
|
(let ((yas/fallback-behavior 'return-nil))
|
||||||
(undo 1)
|
(yas/expand))
|
||||||
nil))
|
(undo 1)
|
||||||
|
nil)))
|
||||||
|
|
||||||
|
|
||||||
;;; Apropos condition-cache:
|
;;; Apropos condition-cache:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user