Rearrange yasnippet config

This commit is contained in:
Adam Goldsmith 2015-12-17 00:20:12 -05:00
parent e2fd404619
commit a6d3a4fc2e

View File

@ -211,13 +211,19 @@
(global-fasd-mode 1)
(setq fasd-enable-initial-prompt nil))
(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
(yas-reload-all)
(defun company-to-yasnippet ()
(interactive)
(company-abort)
(call-interactively 'company-yasnippet))
(bind-key "<backtab>" 'company-to-yasnippet company-active-map)
(bind-key "<backtab>" 'company-yasnippet))
(call-interactively 'company-yasnippet)))
(use-package swiper
:bind ("C-S-s" . swiper)
:bind ("C-S-r" . swiper))