Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/"))
- (load-theme 'wombat t)
- (setq-default tab-width 4)
- (setq-default c-basic-offset 4)
- (require 'smart-tab)
- (global-smart-tab-mode 1)
- (setq-default indent-tabs-mode nil)
- (add-hook 'c-mode-hook
- (lambda () (setq indent-tabs-mode t)))
- (require 'whitespace)
- (global-whitespace-mode t)
- (require 'dart-mode)
- (require 'rainbow-delimiters)
- (add-hook 'prog-mode-hook 'rainbow-delimiters-mode)
- (require 'revive)
- (require 'smooth-scrolling)
- (setq tabbar-ruler-global-tabbar 't) ; If you want tabbar
- (require 'tabbar-ruler)
- (require 'zlc)
- (require 'cedet)
- (global-ede-mode 1)
- (condition-case err
- (semantic-load-enable-code-helpers)
- ('error (semantic-mode)))
- (condition-case err
- (global-srecode-minor-mode 1)
- ('error (srecode-template-mode)))
- ;; ECB tries to use stack-trace-on-error, which isn't in emacs 24
- ;; so set it.
- (setq stack-trace-on-error t)
- (setq ecb-version-check nil)
- (setq ecb-auto-activate t)
- ;; Turn off guru mode - arrow keys work better for reading code.
- (setq prelude-guru nil)
- ;; These lines are to enable a bunch of settings for a package called
- ;; "emacs-for-python," which adds all sorts of project tools,
- ;; refactoring tools, snippets, autocomplete, etc.
- (setq py-shell-name "/usr/bin/python2")
- (add-to-list 'load-path "~/.emacs.d/emacs-for-python")
- (require 'epy-setup)
- (require 'epy-python)
- (require 'epy-completion)
- (require 'epy-editing)
- ;(require 'epy-nose)
- (require 'epy-bindings)
- (epy-setup-checker "pyflakes %f")
- (require 'yasnippet)
- (yas/initialize)
- (yas/load-directory "~/.emacs.d/emacs-for-python/extensions/yasnippet/snippets")
- (epy-django-snippets)
- (require 'highlight-indentation)
- (add-hook 'python-mode-hook 'highlight-indentation)
- (defadvice ecb-check-requirements (around no-version-check activate compile)
- "ECB version checking code is very old so that it thinks that the latest
- cedet/emacs is not new enough when in fact it is years newer than the latest
- version that it is aware of. So simply bypass the version check."
- (if (or (< emacs-major-version 23)
- (and (= emacs-major-version 23)
- (< emacs-minor-version 3)))
- ad-do-it))
- (require 'ecb)
Advertisement
Add Comment
Please, Sign In to add comment