Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (25 sloc) 953 Bytes
;; My auto-complete.el settings.
;; Auto-complete source for CSS property names, from
;; https://github.com/fxbois/web-mode/issues/116#issuecomment-46450381
(defvar ac-source-css-property-names
'((candidates . (loop for property in ac-css-property-alist
collect (car property)))))
(setq ac-initialized nil)
(defun auto-complete-init ()
"My basic configuration for autocomplete.el."
(interactive)
(require 'auto-complete)
(require 'auto-complete-config)
;; (ac-config-default)
(if (not ac-initialized)
(progn
(ac-flyspell-workaround)
(setq ac-auto-start nil)
(custom-set-variables
'(ac-trigger-key "TAB"))
;; Those vim keybinds work their hooks deep into your soul after a
;; while.
(define-key ac-completing-map "\C-j" 'ac-next)
(define-key ac-completing-map "\C-k" 'ac-previous)
(setq ac-dwim t)
(setq ac-initialized t))))