Guest User

Untitled

a guest
Mar 13th, 2013
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 2.25 KB | None | 0 0
  1.  
  2. (add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/"))
  3.  
  4. (load-theme 'wombat t)
  5.  
  6. (setq-default tab-width 4)
  7. (setq-default c-basic-offset 4)
  8.  
  9. (require 'smart-tab)
  10. (global-smart-tab-mode 1)
  11. (setq-default indent-tabs-mode nil)
  12. (add-hook 'c-mode-hook
  13.           (lambda () (setq indent-tabs-mode t)))
  14.  
  15. (require 'whitespace)
  16. (global-whitespace-mode t)
  17.  
  18. (require 'dart-mode)
  19.  
  20. (require 'rainbow-delimiters)
  21. (add-hook 'prog-mode-hook 'rainbow-delimiters-mode)
  22.  
  23. (require 'revive)
  24.  
  25. (require 'smooth-scrolling)
  26.  
  27. (setq tabbar-ruler-global-tabbar 't) ; If you want tabbar
  28. (require 'tabbar-ruler)
  29.  
  30. (require 'zlc)
  31.  
  32. (require 'cedet)
  33. (global-ede-mode 1)
  34. (condition-case err
  35.         (semantic-load-enable-code-helpers)
  36.     ('error (semantic-mode)))
  37. (condition-case err
  38.         (global-srecode-minor-mode 1)
  39.     ('error (srecode-template-mode)))
  40.  
  41. ;; ECB tries to use stack-trace-on-error, which isn't in emacs 24
  42. ;; so set it.
  43. (setq stack-trace-on-error t)
  44. (setq ecb-version-check nil)
  45. (setq ecb-auto-activate t)
  46.  
  47. ;; Turn off guru mode - arrow keys work better for reading code.
  48. (setq prelude-guru nil)
  49.  
  50. ;; These lines are to enable a bunch of settings for a package called
  51. ;; "emacs-for-python," which adds all sorts of project tools,
  52. ;; refactoring tools, snippets, autocomplete, etc.
  53. (setq py-shell-name "/usr/bin/python2")
  54. (add-to-list 'load-path "~/.emacs.d/emacs-for-python")
  55. (require 'epy-setup)
  56. (require 'epy-python)
  57. (require 'epy-completion)
  58. (require 'epy-editing)
  59. ;(require 'epy-nose)
  60. (require 'epy-bindings)
  61. (epy-setup-checker "pyflakes %f")
  62. (require 'yasnippet)
  63. (yas/initialize)
  64. (yas/load-directory "~/.emacs.d/emacs-for-python/extensions/yasnippet/snippets")
  65. (epy-django-snippets)
  66. (require 'highlight-indentation)
  67. (add-hook 'python-mode-hook 'highlight-indentation)
  68.  
  69. (defadvice ecb-check-requirements (around no-version-check activate compile)
  70.   "ECB version checking code is very old so that it thinks that the latest
  71. cedet/emacs is not new enough when in fact it is years newer than the latest
  72. version that it is aware of.  So simply bypass the version check."
  73.   (if (or (< emacs-major-version 23)
  74.           (and (= emacs-major-version 23)
  75.                (< emacs-minor-version 3)))
  76.       ad-do-it))
  77.  
  78. (require 'ecb)
Advertisement
Add Comment
Please, Sign In to add comment