Yasnippet is a snippet expansion system for Emacs. It uses short phrases and the tab key to trigger the insertion of frequently-used snippets of code or text in your document.
(add-to-list 'load-path
(expand-file-name "yasnippet"
(expand-file-name "elpa"
dotfiles-dir)))
(require 'yasnippet)
(require 'stan-mode)
;; (yas/set-ac-modes)
;; (yas/enable-emacs-lisp-paren-hack)
(yas/global-mode 1)
Load the snippets defined in the package’s ./snippets/
directory, and local snippets from the ./local-snippets/
directory.
(yas/load-directory (expand-file-name "snippets" dotfiles-dir))
(require 'auto-complete)
(require 'auto-complete-config)
(global-auto-complete-mode t)
(add-to-list 'ac-dictionary-directories (expand-file-name "auto-complete" dotfiles-dir))
(setq ac-modes (append ac-modes '(org-mode)))
(ac-config-default)
(define-key ac-complete-mode-map [tab] 'ac-expand)
(setq ac-auto-start 4)
(ac-flyspell-workaround)
(define-key ac-mode-map (kbd "M-TAB") 'auto-complete)
(define-key ac-completing-map (kbd "C-c h") 'ac-quick-help)
(message "Starter Kit Completion loaded.")