 (evil-define-key 'insert emacs-lisp-mode-map " " 'emacs-lisp-space)
 
 
-
 ;;; init.el ends here
-
-

(after "yasnippet-autoloads"
       (add-hook 'prog-mode-hook 'yas-minor-mode))



;; hippie-expand
(global-unset-key (kbd "C-SPC"))
(global-set-key (kbd "C-SPC") 'hippie-expand)


;; Other commands

(defun emacs-lisp-space (n)
  ; Similar to 'slime-space', but support all emacs-lisp and custom functions - not just

          (lambda ()
            (yas-activate-extra-mode 'fundamental-mode)))

(defmacro after (mode &rest body)
  (declare (indent defun))
  `(eval-after-load ,mode
     '(progn ,@body)))

(after 'yasnippet
       (yas/reload-all)
       (setq yas/prompt-functions '(yas/ido-prompt yas/completing-prompt yas/no-prompt)))
