Commits

Yorgos Pagles committed e47d4a8

Disable automatic code completion - speed issues on mac. Bound completion trigger to tab key instead.

  • Participants
  • Parent commits 22841eb

Comments (0)

Files changed (3)

 el-get
 elpa
 *.dat
+eshell
 (column-number-mode t)
 (set-fringe-style -1)
 (tooltip-mode -1)
+
 (global-linum-mode 1)
 (global-set-key "\C-x\C-m" 'execute-extended-command)
 (global-set-key (kbd "C-x C-b") 'ibuffer)
         (:name popup
                :type git
                :url "https://github.com/auto-complete/popup-el.git")
-        (:name smart-tab
-               :type git
-               :url "https://github.com/genehack/smart-tab.git")
         (:name js2-mode
                :type git
                :url "http://github.com/mooz/js2-mode.git")))
  my:el-get-packages
       '(el-get
         python-mode
-        virtualenv
         color-theme
-        tidy
         django-mode
         nxhtml
         markdown-mode
         pymacs
         ropemacs
         flymake-cursor
-        yaml-mode))
+        yaml-mode
+        highlight-indentation))
 
 (setq my:el-get-packages
       (append
 (add-to-list 'load-path (concat el-get-dir "yasnippet"))
 (require 'yasnippet)
 (yas-global-mode 1)
+(setq yas/root-directory "~/.emacs.d/snippets")
+(yas/load-directory yas/root-directory)
+
 
 ; django html mode
 (autoload 'django-html-mode "django-html-mode")  
 (require 'auto-complete-config)
 (add-to-list 'ac-dictionary-directories "~/.emacs.d/el-get/auto-complete/dict")
 (ac-config-default)
+;(ac-set-trigger-key "TAB")
+(define-key ac-mode-map (kbd "TAB") 'auto-complete)
+(setq ac-auto-start nil)
+(add-to-list 'ac-sources 'ac-source-yasnippet)
 (ac-ropemacs-initialize)
 (add-hook 'python-mode-hook
           (lambda ()
             (add-to-list 'ac-sources 'ac-source-ropemacs)))
-
-;; Smart Tabs
-(require 'smart-tab)
-(global-smart-tab-mode 1)
-(global-set-key (kbd "TAB") 'smart-tab)
-
-(custom-set-variables
-  ;; custom-set-variables was added by Custom.
-  ;; If you edit it by hand, you could mess it up, so be careful.
-  ;; Your init file should contain only one such instance.
-  ;; If there is more than one, they won't work right.
- '(virtualenv-root "/Users/pagles/virtualenvs"))
-(custom-set-faces
-  ;; custom-set-faces was added by Custom.
-  ;; If you edit it by hand, you could mess it up, so be careful.
-  ;; Your init file should contain only one such instance.
-  ;; If there is more than one, they won't work right.
- )

File snippets/text-mode/python-mode/py

+# -*- coding: utf-8 -*-
+# name: !/usr/bin/env python
+# contributor: Yorgos Pagles <yorgos@pagles.org>
+
+$0