Added some solarized options, neotree, etc.

This commit is contained in:
Tyrel Souza 2017-05-11 23:15:10 -04:00
parent 4842a33192
commit d64f9fe38f
No known key found for this signature in database
GPG Key ID: 2EECB5087209E6A5

18
emacs
View File

@ -17,7 +17,7 @@
("3c83b3676d796422704082049fc38b6966bcad960f896669dfc21a7a37a748fa" "c74e83f8aa4c78a121b52146eadb792c9facc5b1f02c917e3dbb454fca931223" "a27c00821ccfd5a78b01e4f35dc056706dd9ede09a8b90c6955ae6a390eb1c1e" default))) ("3c83b3676d796422704082049fc38b6966bcad960f896669dfc21a7a37a748fa" "c74e83f8aa4c78a121b52146eadb792c9facc5b1f02c917e3dbb454fca931223" "a27c00821ccfd5a78b01e4f35dc056706dd9ede09a8b90c6955ae6a390eb1c1e" default)))
'(package-selected-packages '(package-selected-packages
(quote (quote
(neotree smart-mode-line powerline magit use-package helm evil-visual-mark-mode)))) (color-theme-solarized neotree smart-mode-line powerline magit use-package helm evil-visual-mark-mode))))
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.
@ -32,6 +32,7 @@
) )
(use-package magit) (use-package magit)
(load-theme 'solarized t)
(use-package smart-mode-line (use-package smart-mode-line
:ensure t :ensure t
:config :config
@ -47,7 +48,22 @@
:ensure t :ensure t
:config :config
(global-set-key [f8] 'neotree-toggle) (global-set-key [f8] 'neotree-toggle)
(setq neo-smart-open t)
) )
;; Set Powerline Configuration ;; Set Powerline Configuration
(setq powerline-arrow-shape 'curve) (setq powerline-arrow-shape 'curve)
(setq powerline-default-separator-dir '(right . left)) (setq powerline-default-separator-dir '(right . left))
;; rebind neotree in evil-mode
(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)
(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)))