Rearrange yasnippet config
This commit is contained in:
parent
e2fd404619
commit
a6d3a4fc2e
@ -211,13 +211,19 @@
|
|||||||
(global-fasd-mode 1)
|
(global-fasd-mode 1)
|
||||||
(setq fasd-enable-initial-prompt nil))
|
(setq fasd-enable-initial-prompt nil))
|
||||||
(use-package yasnippet
|
(use-package yasnippet
|
||||||
|
:defer
|
||||||
|
:init
|
||||||
|
(add-hook 'LaTeX-mode-hook
|
||||||
|
'(lambda ()
|
||||||
|
(yas-minor-mode)
|
||||||
|
(define-key company-active-map "<backtab>" 'company-to-yasnippet)
|
||||||
|
(define-key (current-local-map) "<backtab>" 'company-yasnippet)))
|
||||||
:config
|
:config
|
||||||
|
(yas-reload-all)
|
||||||
(defun company-to-yasnippet ()
|
(defun company-to-yasnippet ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(company-abort)
|
(company-abort)
|
||||||
(call-interactively 'company-yasnippet))
|
(call-interactively 'company-yasnippet)))
|
||||||
(bind-key "<backtab>" 'company-to-yasnippet company-active-map)
|
|
||||||
(bind-key "<backtab>" 'company-yasnippet))
|
|
||||||
(use-package swiper
|
(use-package swiper
|
||||||
:bind ("C-S-s" . swiper)
|
:bind ("C-S-s" . swiper)
|
||||||
:bind ("C-S-r" . swiper))
|
:bind ("C-S-r" . swiper))
|
||||||
|
Loading…
Reference in New Issue
Block a user