Skip to content

Commit

Permalink
Hook auto-complete's own ac-sources setup fns into css, sass & elisp …
Browse files Browse the repository at this point in the history
…modes
  • Loading branch information
purcell committed Jul 11, 2011
1 parent 7253f1a commit d7883ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions init-css.el
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,9 @@
(add-hook 'html-mode-hook 'rainbow-turn-on)
(add-hook 'sass-mode-hook 'rainbow-turn-on)

(eval-after-load "auto-complete"
'(progn
(add-hook 'css-mode-hook 'ac-css-mode-setup)
(add-hook 'sass-mode-hook 'ac-css-mode-setup)))

(provide 'init-css)
2 changes: 1 addition & 1 deletion init-lisp.el
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
(add-to-list 'ac-source-symbols '(selection-face . ac-symbol-selection-face))))

(defun set-up-ac-for-elisp ()
(add-to-list 'ac-sources 'ac-source-symbols))
(ac-emacs-lisp-mode-setup))

(defun maybe-map-paredit-newline ()
(unless (or (eq major-mode 'inferior-emacs-lisp-mode) (minibufferp))
Expand Down

0 comments on commit d7883ef

Please sign in to comment.