2017-05-11 21:16:45 +00:00
|
|
|
(require 'package)
|
|
|
|
|
|
|
|
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/"))
|
|
|
|
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
|
|
|
|
(add-to-list 'package-archives '("melpa-stable" . "http://stable.melpa.org/packages/"))
|
|
|
|
|
|
|
|
(setq package-enable-at-startup nil)
|
2017-05-25 04:24:08 +00:00
|
|
|
(setq sml/theme 'light)
|
2017-05-11 21:16:45 +00:00
|
|
|
(package-initialize)
|
|
|
|
(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.
|
2017-05-25 04:24:08 +00:00
|
|
|
'(custom-enabled-themes (quote (smart-mode-line-dark)))
|
2017-05-11 21:16:45 +00:00
|
|
|
'(custom-safe-themes
|
|
|
|
(quote
|
2017-05-25 04:24:08 +00:00
|
|
|
("4aee8551b53a43a883cb0b7f3255d6859d766b6c5e14bcb01bed572fcbef4328" "4cf3221feff536e2b3385209e9b9dc4c2e0818a69a1cdb4b522756bcdf4e00a4" "3c83b3676d796422704082049fc38b6966bcad960f896669dfc21a7a37a748fa" "c74e83f8aa4c78a121b52146eadb792c9facc5b1f02c917e3dbb454fca931223" "a27c00821ccfd5a78b01e4f35dc056706dd9ede09a8b90c6955ae6a390eb1c1e" default)))
|
2017-05-11 21:16:45 +00:00
|
|
|
'(package-selected-packages
|
|
|
|
(quote
|
2017-05-25 04:24:08 +00:00
|
|
|
(color-theme-sanityinc-solarized projectile virtualenvwrapper jedi color-theme-solarized neotree smart-mode-line powerline magit use-package helm evil-visual-mark-mode))))
|
2017-05-11 21:16:45 +00:00
|
|
|
(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.
|
|
|
|
)
|
2017-05-25 04:24:08 +00:00
|
|
|
|
|
|
|
;; Git interface
|
|
|
|
(use-package magit)
|
|
|
|
|
|
|
|
;; VIM IN EMACS
|
2017-05-11 21:16:45 +00:00
|
|
|
(use-package evil
|
|
|
|
:ensure t
|
|
|
|
:config
|
|
|
|
(evil-mode 1)
|
|
|
|
;; More configuration goes here
|
|
|
|
)
|
|
|
|
|
2017-05-25 04:24:08 +00:00
|
|
|
; Solariazed Configurations
|
2017-05-12 03:15:10 +00:00
|
|
|
(load-theme 'solarized t)
|
2017-05-25 04:24:08 +00:00
|
|
|
(set-terminal-parameter nil 'background-mode 'dark)
|
|
|
|
(add-hook 'after-make-frame-functions
|
|
|
|
(lambda (frame)
|
|
|
|
(let ((mode (if (display-graphic-p frame) 'light 'dark)))
|
|
|
|
(set-frame-parameter frame 'background-mode mode)
|
|
|
|
(set-terminal-parameter frame 'background-mode mode))
|
|
|
|
(enable-theme 'solarized)))
|
|
|
|
|
|
|
|
; Mode Line configurations to make powerliner better
|
2017-05-11 21:16:45 +00:00
|
|
|
(use-package smart-mode-line
|
|
|
|
:ensure t
|
|
|
|
:config
|
|
|
|
(sml/setup)
|
2017-05-25 04:24:08 +00:00
|
|
|
|
|
|
|
;; Powerline
|
2017-05-11 21:16:45 +00:00
|
|
|
(use-package powerline
|
|
|
|
:ensure t
|
|
|
|
:config
|
|
|
|
(powerline-center-evil-theme)
|
|
|
|
)
|
2017-05-25 04:24:08 +00:00
|
|
|
;; Set Powerline Configuration
|
|
|
|
(setq powerline-arrow-shape 'curve)
|
|
|
|
(setq powerline-default-separator-dir '(right . left))
|
|
|
|
)
|
|
|
|
|
2017-05-11 21:16:45 +00:00
|
|
|
; https://www.emacswiki.org/emacs/NeoTree
|
|
|
|
(use-package neotree
|
|
|
|
:ensure t
|
|
|
|
:config
|
|
|
|
(global-set-key [f8] 'neotree-toggle)
|
2017-05-12 03:15:10 +00:00
|
|
|
(setq neo-smart-open t)
|
2017-05-11 21:16:45 +00:00
|
|
|
)
|
2017-05-12 03:15:10 +00:00
|
|
|
(evil-define-key 'normal neotree-mode-map (kbd "TAB") 'neotree-enter)
|
|
|
|
(evil-define-key 'normal neotree-mode-map (kbd "SPC") 'neotree-enter)
|
|
|
|
(evil-define-key 'normal neotree-mode-map (kbd "q") 'neotree-hide)
|
|
|
|
(evil-define-key 'normal neotree-mode-map (kbd "RET") 'neotree-enter)
|
|
|
|
|
2017-05-25 04:24:08 +00:00
|
|
|
;; Jedi - Python autocomplete
|
|
|
|
(add-hook 'python-mode-hook 'jedi:setup)
|
|
|
|
(setq jedi:complete-on-dot t)
|
|
|
|
(add-hook 'python-mode-hook 'jedi:setup)
|
|
|
|
|
|
|
|
;; Virtualenv stuff
|
|
|
|
;; https://github.com/porterjamesj/virtualenvwrapper.el
|
|
|
|
(require 'virtualenvwrapper)
|
|
|
|
(venv-initialize-interactive-shells) ;; if you want interactive shell support
|
|
|
|
(venv-initialize-eshell) ;; if you want eshell support
|
|
|
|
|
|
|
|
;; Projectile and Virtualenv
|
|
|
|
(setq projectile-switch-project-action 'venv-projectile-auto-workon)
|
|
|
|
(setq venv-dirlookup-names '(".venv" "pyenv" ".virtual"))
|
|
|
|
|
|
|
|
;; keybindings
|
|
|
|
;; Magit!
|
|
|
|
(global-set-key (kbd "C-x g") 'magit-status)
|
|
|
|
;; buffer list
|
|
|
|
(global-set-key (kbd "C-x C-l") 'list-buffers)
|