Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;; init.el --- Emacs configuration
- ;; Write "python -m pip install elpy flycheck py-atuopep8 jedi"
- ;; INSTALL PACKAGES
- ;; --------------------------------------
- (require 'package)
- (add-to-list 'package-archives
- '("melpa" . "http://melpa.org/packages/") t)
- (package-initialize)
- (when (not package-archive-contents)
- (package-refresh-contents))
- (defvar myPackages
- '(material-theme
- evil
- evil-leader
- helm
- elpy
- flycheck
- py-autopep8
- powerline))
- (mapc #'(lambda (package)
- (unless (package-installed-p package)
- (package-install package)))
- myPackages)
- ;; BASIC CUSTOMIZATION
- ;; --------------------------------------
- (elpy-enable)
- (when (require 'flycheck nil t)
- (setq elpy-modules (delq 'elpy-module-flymake elpy-modules))
- (add-hook 'elpy-mode-hook 'flycheck-mode))
- (require 'py-autopep8)
- (add-hook 'elpy-mode-hook 'py-autopep8-enable-on-save)
- (require 'helm-config)
- (require 'evil-leader)
- (global-evil-leader-mode)
- (require 'evil)
- (evil-mode 1)
- (evil-leader/set-leader "<SPC>")
- (evil-leader/set-key
- "x" 'helm-M-x
- "f f" 'helm-find-files
- "f s" 'save-buffer)
- (require 'powerline)
- (powerline-default-theme)
- (setq inhibit-startup-message t) ;; hide the startup message
- (load-theme 'material t) ;; load material theme
- (global-linum-mode t) ;; enable line numbers globally
- ;; init.el ends here
- (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.
- '(package-selected-packages (quote (elpy material-theme helm evil-leader))))
- (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.
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement