Created
April 16, 2011 18:24
-
-
Save vkolev/923373 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Tab indention for Python | |
(setq-default indent-tabs-mode nil) | |
(setq default-tab-width 4) | |
;; Pymacs configuration | |
(add-to-list 'load-path "~/.emacs.d/vendor") | |
(require 'pymacs) | |
(pymacs-load "ropemacs" "rope-") | |
(setq ropemacs-enable-autoimport t) | |
;; Enable the Yasnippet plugin | |
(require 'yasnippet-bundle) | |
;; Color-theme | |
(require 'color-theme-gruber-darker) | |
(color-theme-gruber-darker) | |
;; Autocomplete set up | |
(add-to-list 'load-path "~/.emacs.d/vendor/auto-complete-1.3.1") | |
(require 'auto-complete-config) | |
(add-to-list 'ac-dictionary-directories "~/.emacs.d/vendor/auto-complete-1.3.1/dict") | |
(ac-config-default) | |
;; PyFlakes and pep8 | |
(add-hook 'find-file-hook 'flymake-find-file-hook) | |
(when (load "flymake" t) | |
(defun flymake-pyflakes-init () | |
(let* ((temp-file (flymake-init-create-temp-buffer-copy | |
'flymake-create-temp-inplace)) | |
(local-file (file-relative-name | |
temp-file | |
(file-name-directory buffer-file-name)))) | |
(list "pycheckers" (list local-file)))) | |
(add-to-list 'flymake-allowed-file-name-masks | |
'("\\.py\\'" flymake-pyflakes-init))) | |
(load-library "flymake-cursor") | |
(global-set-key [f10] 'flymake-goto-prev-error) | |
(global-set-key [f11] 'flymake-goto-next-error) | |
;; Pylookup setup | |
(setq pylookup-dir "~/.emacs.d/vendor/pylookup") | |
(add-to-list 'load-path pylookup-dir) | |
(eval-when-compile (require 'pylookup)) | |
(setq pylookup-program (concat pylookup-dir "/pylookup.py")) | |
(setq pylookup-db-file (concat pylookup-dir "/pylookup.db")) | |
(autoload 'pylookup-lookup "pylookup") | |
(autoload 'pylookup-update "pylookup") | |
;; Twitter for Emacs | |
(add-to-list 'load-path "~/.emacs.d/vendor/twittering-mode") | |
(require 'twittering-mode) | |
(setq twittering-use-master-password t) | |
(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. | |
) | |
(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. | |
'(default ((t (:inherit nil :stipple nil :background "#181818" :foreground "#e4e4ef" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 90 :width normal :foundry "unknown" :family "DejaVu Sans Mono"))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Tab indention for Python | |
(setq-default indent-tabs-mode nil) | |
(setq default-tab-width 4) | |
;; Pymacs configuration | |
(add-to-list 'load-path "~/.emacs.d/vendor") | |
(require 'pymacs) | |
(pymacs-load "ropemacs" "rope-") | |
(setq ropemacs-enable-autoimport t) | |
;; Color-theme | |
(require 'color-theme-gruber-darker) | |
(color-theme-gruber-darker) | |
;; Autocomplete set up | |
(add-to-list 'load-path "~/.emacs.d/vendor/auto-complete-1.3.1") | |
(require 'auto-complete-config) | |
(add-to-list 'ac-dictionary-directories "~/.emacs.d/vendor/auto-complete-1.3.1/dict") | |
(ac-config-default) | |
;; PyFlakes and pep8 | |
(add-hook 'find-file-hook 'flymake-find-file-hook) | |
(when (load "flymake" t) | |
(defun flymake-pyflakes-init () | |
(let* ((temp-file (flymake-init-create-temp-buffer-copy | |
'flymake-create-temp-inplace)) | |
(local-file (file-relative-name | |
temp-file | |
(file-name-directory buffer-file-name)))) | |
(list "pycheckers" (list local-file)))) | |
(add-to-list 'flymake-allowed-file-name-masks | |
'("\\.py\\'" flymake-pyflakes-init))) | |
(load-library "flymake-cursor") | |
(global-set-key [f10] 'flymake-goto-prev-error) | |
(global-set-key [f11] 'flymake-goto-next-error) | |
;; Pylookup setup | |
(setq pylookup-dir "~/.emacs.d/vendor/pylookup") | |
(add-to-list 'load-path pylookup-dir) | |
(eval-when-compile (require 'pylookup)) | |
(setq pylookup-program (concat pylookup-dir "/pylookup.py")) | |
(setq pylookup-db-file (concat pylookup-dir "/pylookup.db")) | |
(autoload 'pylookup-lookup "pylookup") | |
(autoload 'pylookup-update "pylookup") | |
(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. | |
) | |
(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. | |
'(default ((t (:inherit nil :stipple nil :background "#181818" :foreground "#e4e4ef" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 90 :width normal :foundry "unknown" :family "DejaVu Sans Mono"))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment