Commits

Anonymous committed 5087ac1

Better auto complete triggering

Comments (0)

Files changed (1)

 (add-to-list 'load-path "~/.emacs.d/el-get/el-get")
 (add-to-list 'load-path "~/.emacs.d/custom")
 
-(unless (require 'el-get nil t)
-  (url-retrieve
-   "https://github.com/dimitri/el-get/raw/master/el-get-install.el"
-   (lambda (s)
-     (end-of-buffer)
-     (eval-print-last-sexp))))
+(unless (require 'el-get nil 'noerror)
+  (with-current-buffer
+      (url-retrieve-synchronously
+       "https://raw.github.com/dimitri/el-get/master/el-get-install.el")
+    (goto-char (point-max))
+    (eval-print-last-sexp)))
+
+;(el-get 'sync)
 
 (setq el-get-sources
       '((:name cobalt-theme
                :url "git://github.com/puppetlabs/puppet-syntax-emacs.git")
         (:name json-mode
                :type git
-               :url "https://github.com/joshwnj/json-mode.git")
+               :url "git://github.com/joshwnj/json-mode.git")
         (:name auto-complete
                :type git
-               :url "https://github.com/auto-complete/auto-complete.git")
+               :url "git://github.com/auto-complete/auto-complete.git")
         (:name fuzzy
                :type git
-               :url "https://github.com/auto-complete/fuzzy-el.git")
+               :url "git://github.com/auto-complete/fuzzy-el.git")
         (:name popup
                :type git
                :url "https://github.com/auto-complete/popup-el.git")
                :url "git://github.com/ananthakumaran/monky.git")
         (:name js2-mode
                :type git
-               :url "https://github.com/mooz/js2-mode.git")))
+               :url "git://github.com/mooz/js2-mode.git")
+        (:name pymacs
+               :description "Interface between Emacs Lisp and Python"
+               :type git
+               :url "git://github.com/pinard/Pymacs.git"
+               :prepare
+               (progn
+                 ;; do PYTHONPATH=~/.emacs.d/el-get/pymacs/:$PYTHONPATH
+                 (el-get-envpath-prepend "PYTHONPATH" default-directory)
+                 (autoload 'pymacs-load "pymacs" nil t)
+                 (autoload 'pymacs-eval "pymacs" nil t)
+                 (autoload 'pymacs-exec "pymacs" nil t)
+                 (autoload 'pymacs-call "pymacs")
+                 (autoload 'pymacs-apply "pymacs"))
+               :build ("make"))))
 
 (setq
  my:el-get-packages
         go-mode
         magit
         yasnippet
-        pymacs
         ropemacs
         flymake-cursor
         yaml-mode
 
 (el-get 'sync my:el-get-packages)
 
-
 ; yasnippet
 (add-to-list 'load-path (concat el-get-dir "yasnippet"))
 (require 'yasnippet)
 (require 'auto-complete-config)
 (add-to-list 'ac-dictionary-directories "~/.emacs.d/el-get/auto-complete/dict")
 (ac-config-default)
-(define-key ac-mode-map (kbd "TAB") 'auto-complete)
+(ac-set-trigger-key "TAB")
 (setq ac-auto-start nil)
 (add-to-list 'ac-sources 'ac-source-yasnippet)
 (ac-ropemacs-initialize)