]> gitweb @ CieloNegro.org - sugar.git/commitdiff
Auto commit by The Sugar System.
authorPHO <pho@cielonegro.org>
Wed, 6 Oct 2010 07:18:49 +0000 (16:18 +0900)
committerPHO <pho@cielonegro.org>
Wed, 6 Oct 2010 07:18:49 +0000 (16:18 +0900)
dot-files/_emacs_el

index bbfa1cd68d043d6573b65403fe1ce374f515623d..4ff68969740a0458016604fd187a5717bb24fcce 100644 (file)
 ;; 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)