Advertisement
Guest User

Untitled

a guest
Sep 20th, 2014
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.76 KB | None | 0 0
  1. (require 'package) (setq package-archives '(("gnu" .
  2. "http://elpa.gnu.org/packages/") ("marmalade" .
  3. "http://marmalade-repo.org/packages/") ("melpa" .
  4. "http://melpa.milkbox.net/packages/")))
  5.  
  6. (autoload 'pymacs-apply "pymacs")
  7. (autoload 'pymacs-call "pymacs")
  8. (autoload 'pymacs-eval "pymacs" nil t)
  9. (autoload 'pymacs-exec "pymacs" nil t)
  10. (autoload 'pymacs-load "pymacs" nil t)
  11. ;;(eval-after-load "pymacs"
  12. ;; '(add-to-list 'pymacs-load-path /usr/share/emacs/site-lisp/pymacs/"))
  13. (require 'pymacs)
  14. (pymacs-load "ropemacs" "rope-")
  15. (when (load "flymake" t)
  16. (defun flymake-pyflakes-init ()
  17. (let* ((temp-file (flymake-init-create-temp-buffer-copy
  18. 'flymake-create-temp-inplace))
  19. (local-file (file-relative-name
  20. temp-file
  21. (file-name-directory buffer-file-name))))
  22. (list "pyflakes" (list local-file))))
  23.  
  24. (add-to-list 'flymake-allowed-file-name-masks
  25. '("\\.py\\'" flymake-pyflakes-init)))
  26.  
  27. (add-hook 'find-file-hook 'flymake-find-file-hook)
  28.  
  29. (add-hook 'python-mode-hook
  30. (lambda ()
  31. (add-to-list 'ac-sources 'ac-source-ropemacs)))
  32.  
  33. (setq stack-trace-on-error t)
  34.  
  35. (add-to-list 'load-path
  36. "/home/daniel/.emacs.d/ecb")
  37. (require 'ecb)
  38. (setq stack-trace-on-error nil) ;;don’t popup Backtrace window
  39. (setq ecb-tip-of-the-day nil)
  40. (setq ecb-auto-activate t)
  41. (setq ecb-layout-name "left6")
  42. (setq ecb-options-version "2.40")
  43. (setq ecb-primary-secondary-mouse-buttons (quote mouse-1–mouse-2))
  44. (setq ecb-source-path (quote ("~/Universidad/sw")))
  45. (semantic-mode)
  46.  
  47. (load-file "/home/daniel/.emacs.d/emacs-for-python/epy-init.el")
  48.  
  49. (setq tab-width 4)
  50. (setq indent-tabs-mode t)
  51.  
  52. (global-set-key (kbd "s-g") 'rope-goto-definition)
  53. (global-set-key (kbd "s-h") 'ecb-goto-window-history)
  54. (global-set-key (kbd "s-c") 'ecb-goto-window-edit1)
  55. (global-set-key (kbd "s-d") 'rope-show-doc)
  56. (global-set-key (kbd "s-o") 'rope-find-file)
  57. (global-set-key (kbd "s-m") 'ecb-goto-window-methods)
  58.  
  59. (custom-set-variables
  60. ;; custom-set-variables was added by Custom.
  61. ;; If you edit it by hand, you could mess it up, so be careful.
  62. ;; Your init file should contain only one such instance.
  63. ;; If there is more than one, they won't work right.
  64. '(custom-enabled-themes (quote (solarized-dark)))
  65. '(custom-safe-themes (quote ("8aebf25556399b58091e533e455dd50a6a9cba958cc4ebb0aab175863c25b9a4" default)))
  66. '(ecb-primary-secondary-mouse-buttons (quote mouse-2--C-mouse-2))
  67. '(indent-tabs-mode t)
  68. '(standard-indent 8))
  69. (custom-set-faces
  70. ;; custom-set-faces was added by Custom.
  71. ;; If you edit it by hand, you could mess it up, so be careful.
  72. ;; Your init file should contain only one such instance.
  73. ;; If there is more than one, they won't work right.
  74. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement