Commit 72fc48e 1 parent 54d89da commit 72fc48e Copy full SHA for 72fc48e
File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 377
377
(defun vsc-edit-tab ()
378
378
" Global TAB key."
379
379
(interactive )
380
- (if (or (vsc-edit-prog-mode-p) vsc-edit-insert-tab-on-tab)
381
- (vsc-edit-smart-tab)
382
- (funcall-interactively (local-key-binding (kbd " TAB" )))))
380
+ (or (and yas-minor-mode
381
+ (ignore-errors (yas-next-field-or-maybe-expand ) t ))
382
+ (if (or (vsc-edit-prog-mode-p) vsc-edit-insert-tab-on-tab)
383
+ (vsc-edit-smart-tab)
384
+ (execute-kbd-macro (kbd " TAB" )))))
383
385
384
386
(defun vsc-edit-smart-shift-tab ()
385
387
" `prog-mode' shift tab."
405
407
(interactive )
406
408
(if (vsc-edit-prog-mode-p)
407
409
(vsc-edit-smart-shift-tab)
408
- (funcall-interactively ( local-key-binding [S-tab]) )))
410
+ (execute-kbd-macro [S-tab])))
409
411
410
412
; ;
411
413
; ; (@* "BOL and EOL" )
You can’t perform that action at this time.
0 commit comments