 ;; Author: Dan Harms <danielrharms@gmail.com>
 ;; Created: Friday, February 27, 2015
 ;; Version: 1.0
-;; Modified Time-stamp: <2016-03-09 08:36:46 dan.harms>
+;; Modified Time-stamp: <2016-03-09 13:02:15 dan.harms>
 ;; Modified by: Dan Harms
 ;; Keywords:
 

;; integrate with auto-complete (shows only snippets)
(defun my/expand-yasnippet() (interactive)
       (auto-complete '(ac-source-yasnippet)))
(global-set-key [backtab] 'my/expand-yasnippet)
(global-set-key [(shift tab)] 'my/expand-yasnippet)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; flycheck ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(setq-default flycheck-emacs-lisp-load-path 'inherit)

                             yas-dropdown-prompt
                             yas-no-prompt
                             ))
;; disable TAB key from activating a snippet
(define-key yas-minor-mode-map (kbd "<tab>") nil)
(define-key yas-minor-mode-map (kbd "TAB") nil)
;; add our own keybindings
(define-key yas-minor-mode-map "\C-cse" 'yas-expand)
(define-key yas-minor-mode-map "\C-csi" 'yas-insert-snippet)
