Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (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.
- '(inhibit-startup-screen t)
- '(initial-buffer-choice t)
- '(initial-scratch-message nil))
- '(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.
- )
- ;;; Add to emacs load path
- (add-to-list 'load-path “~/.emacs.d/”)
- (add-to-list 'load-path “~/.emacs.d/plugins/”)
- (add-to-list 'load-path “~/.emacs.d/plugins/autocomplete”)
- ;;; Put scrollbar on the right side
- ;(setq scroll-bar-mode-explicit t)
- ;(set-scroll-bar-mode 'right)
- ;;; Integrate with MATLAB
- (setq load-path (cons "~/.emacs.d/elisp/matlab-emacs/" load-path))
- (load-library "matlab-load")
- ;;; Autocompletion
- (add-to-list 'load-path "~/.emacs.d/plugins/autocomplete/")
- (require 'auto-complete-config)
- (add-to-list 'ac-dictionary-directories "~/.emacs.d/plugins/autocomplete//ac-dict")
- (ac-config-default)
- ;;; Python with Emacs
- ;; Pymacs
- (autoload 'pymacs-apply "pymacs")
- (autoload 'pymacs-call "pymacs")
- (autoload 'pymacs-eval "pymacs" nil t)
- (autoload 'pymacs-exec "pymacs" nil t)
- (autoload 'pymacs-load "pymacs" nil t)
- ;;(eval-after-load "pymacs"
- ;; '(add-to-list 'pymacs-load-path ~/.emacs.d/plugins"))
- ;; ropemacs
- (require 'pymacs)
- (pymacs-load "ropemacs" "rope-")
- ;; flymake
- (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 "pyflakes" (list local-file))))
- (add-to-list 'flymake-allowed-file-name-masks
- '("\\.py\\'" flymake-pyflakes-init)))
- (add-hook 'find-file-hook 'flymake-find-file-hook)
- ;; Adding flymake errors to minibuffer
- (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)))))
- (add-hook 'post-command-hook 'my-flymake-show-help)
- ;; Add autocomplete rope integration
- (ac-ropemacs-initialize)
- (add-hook 'python-mode-hook
- (lambda ()
- (add-to-list 'ac-sources 'ac-source-ropemacs)))
- ;; Enable ido mode
- (require 'ido)
- (ido-mode t)
- (setq ido-enable-flex-matching t) ;; enable fuzzy matching
- ;;; Test
- (setq default-frame-alist
- (append default-frame-alist
- '((foreground-color . "Black")
- (background-color . "White")
- (cursor-color . "SkyBlue")
- )))
- ;; Background color (test)
- (set-background-color "black")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement