Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;; init.el --- Emacs configuration
- ;; 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
- ivy
- counsel
- company-jedi
- org-bullets))
- ;; ox-pandoc))
- (mapc #'(lambda (package)
- (unless (package-installed-p package)
- (package-install package)))
- myPackages)
- ;; BASIC CUSTOMIZATION
- ;; --------------------------------------
- (add-to-list 'exec-path "C:\\Python27")
- (add-to-list 'exec-path "C:\\Python27\\Scripts")
- (add-to-list 'exec-path "C:\\Python27\\Lib")
- (define-key global-map "\C-ca" 'org-agenda)
- (define-key global-map "\C-cl" 'org-store-link)
- (setq org-log-done 'time)
- (require 'org-bullets)
- (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))
- (ivy-mode 1)
- ;; (add-hook 'markdown-mode-hook 'pandoc-mode)
- (require 'elpy)
- (elpy-enable)
- (when (require 'flycheck nil t)
- (setq elpy-modules (delq 'elpy-module-flymake elpy-modules))
- (add-hook 'elpy-mode-hook 'flycheck-mode))
- (defun my/python-mode-hook ()
- (add-to-list 'company-backends 'company-jedi))
- (add-hook 'python-mode-hook 'my/python-mode-hook)
- ;; (add-hook 'python-mode-hook 'jedi:setup)
- ;; (setq jedi:complete-on-dot t)
- (add-hook 'python-mode-hook 'my/python-mode-hook)
- (setq elpy-syntax-command "python -m flake8")
- (require 'py-autopep8)
- (add-hook 'elpy-mode-hook 'py-autopep8-enable-on-save)
- (require 'helm-config)
- (global-flycheck-mode)
- (require 'evil-leader)
- (global-evil-leader-mode)
- (require 'evil)
- (evil-mode 1)
- (evil-leader/set-leader "<SPC>")
- (evil-leader/set-key
- "x" 'counsel-M-x
- "f f" 'counsel-find-file
- "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.
- '(org-agenda-custom-commands
- (quote
- (("n" "Agenda and all TODOs"
- ((agenda "" nil)
- (alltodo "" nil))
- nil)
- ("i" "A sorted expanded agenda view"
- ((agenda ""
- ((org-agenda-overriding-header "Calendar")))
- (tags "URGENT"
- ((org-agenda-overriding-header "Urgent Stuff")))
- (todo "NEXT"
- ((org-agenda-overriding-header "All NEXT Actions")))
- (alltodo ""
- ((org-agenda-overriding-header "TODO list"))))
- nil nil))))
- '(org-agenda-files (quote ("c:/org/index.org")))
- '(package-selected-packages
- (quote
- (ox-pandoc org-pandoc pandoc pandoc-mode 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