org: clean up yas fix
This commit is contained in:
parent
0cfb533885
commit
177e2b610a
1 changed files with 6 additions and 7 deletions
|
@ -329,14 +329,13 @@ will function properly."
|
|||
|
||||
;; fix some org-mode + yasnippet conflicts:
|
||||
(defun yas/org-very-safe-expand ()
|
||||
(let ((yas/fallback-behavior 'return-nil)) (yas/expand)))
|
||||
(let ((yas-fallback-behavior 'return-nil)) (yas-expand)))
|
||||
|
||||
(add-hook 'org-mode-hook
|
||||
(lambda ()
|
||||
(make-variable-buffer-local 'yas/trigger-key)
|
||||
(add-hook! org-mode
|
||||
(make-variable-buffer-local 'yas-trigger-key)
|
||||
(setq yas/trigger-key [tab])
|
||||
(add-to-list 'org-tab-first-hook 'yas/org-very-safe-expand)
|
||||
(define-key yas/keymap [tab] 'yas-next-field)))
|
||||
(define-key yas/keymap [tab] 'yas-next-field))
|
||||
|
||||
;;; Evil integration
|
||||
(progn
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue