Guest User

Untitled

a guest
Oct 20th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 2.32 KB | None | 0 0
  1. (add-to-list 'load-path "~/.emacs.d")
  2. (add-to-list 'load-path "~/.emacs.d/plugins")
  3. (require 'ido)
  4. (ido-mode t)
  5. (cua-mode t)
  6. (setq cua-auto-tabify-rectangles nil) ;; Don't tabify after rectangle commands
  7. (transient-mark-mode 1) ;; No region when it is not highlighted
  8. (setq cua-keep-region-after-copy t) ;; Standard Windows behaviour
  9.  
  10. (delete-selection-mode 1)
  11. (add-to-list 'load-path "~/.emacs.d/plugins/auto-complete-1.3.1/")
  12. (require 'auto-complete-config)
  13. (add-to-list 'ac-dictionary-directories "~/.emacs.d/plugins/auto-complete-1.3.1/ac-dict")
  14. (ac-config-default)
  15. (add-to-list 'load-path "~/.emacs.d/plugins/yasnippet-0.6.1c")
  16. (require 'yasnippet) ;; not yasnippet-bundle
  17. (yas/initialize)
  18. (yas/load-directory "~/.emacs.d/plugins/yasnippet-0.6.1c/snippets")
  19. (require 'uniquify)
  20. (setq uniquify-buffer-name-style 'forward)
  21. (setq-default indent-tabs-mode nil)  ; use only spaces and no tabs
  22. (setq default-tab-width 4)
  23.  
  24. (autoload 'pymacs-apply "pymacs")
  25. (autoload 'pymacs-call "pymacs")
  26. (autoload 'pymacs-eval "pymacs" nil t)
  27. (autoload 'pymacs-exec "pymacs" nil t)
  28. (autoload 'pymacs-load "pymacs" nil t)
  29. (require 'pymacs)
  30.  
  31. (pymacs-load "ropemacs" "rope-")
  32. (setq ropemacs-enable-autoimport t)
  33.  
  34. (when (load "flymake" t)
  35.   (defun flymake-pyflakes-init ()
  36.     (let* ((temp-file (flymake-init-create-temp-buffer-copy
  37.                        'flymake-create-temp-inplace))
  38.            (local-file (file-relative-name
  39.                         temp-file
  40.                         (file-name-directory buffer-file-name))))
  41.       (list "/usr/bin/pyflakes" (list local-file))))
  42.  
  43. (add-to-list 'flymake-allowed-file-name-masks '("\.py\'" flymake-pyflakes-init)))
  44.  
  45. (add-hook 'find-file-hook 'flymake-find-file-hook)
  46.  
  47. (defun my-flymake-show-help () (when (get-char-property (point) 'flymake-overlay) (let ((help (get-char-property (point) 'help-echo))) (if help (message "%s" help)))))
  48.  
  49. (add-hook 'post-command-hook 'my-flymake-show-help)
  50.  
  51. (delete '("\.html?\'" flymake-xml-init) flymake-allowed-file-name-masks)
  52.  
  53. (custom-set-variables
  54.   '(py-pychecker-command "~/.emacs.d/pychecker.sh")
  55.   '(py-pychecker-command-args (quote ("")))
  56.   '(python-check-command "~/.emacs.d/pychecker.sh")
  57.  
  58. )
  59. (load "~/.emacs.d/nxhtml/autostart.el")
  60. (setq mumamo-background-colors nil)
  61. (add-to-list 'auto-mode-alist '("\\.html$" . django-html-mumamo-mode))
Add Comment
Please, Sign In to add comment