From: PHO Date: Wed, 6 Oct 2010 07:18:49 +0000 (+0900) Subject: Auto commit by The Sugar System. X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=f3ceedd1392b5328d1f47576c95fd0ebf05a0f4d;p=sugar.git Auto commit by The Sugar System. --- diff --git a/dot-files/_emacs_el b/dot-files/_emacs_el index bbfa1cd..4ff6896 100644 --- a/dot-files/_emacs_el +++ b/dot-files/_emacs_el @@ -112,6 +112,21 @@ ;; jaspace (require-if-present 'jaspace) +;; auto-complete +(require-if-present 'auto-complete-config) +(if (featurep 'auto-complete-config) + (progn + (add-to-list 'ac-dictionary-directories + "/usr/pkg/share/emacs/site-lisp/auto-complete/ac-dict") + (mapcar (lambda (mode) + (add-to-list 'ac-modes mode)) + '(autoconf-mode + erlang-mode)) + (add-hook 'erlang-mode-hook + (lambda () + (add-to-list 'ac-sources 'ac-source-semantic))) + (ac-config-default))) + ;; mic-paren (require-if-present 'mic-paren) (if (featurep 'mic-paren)