Merge branch 'master' of gitlab.com:tyrelsouza/dotfiles
This commit is contained in:
commit
f2a1589176
@ -6,6 +6,7 @@ alias adocs='cd $ADDGENE_CORE_REPO_DIR/docs && make html && open $ADDGENE_CORE_R
|
|||||||
alias aenv='env | sort | grep ADDGENE'
|
alias aenv='env | sort | grep ADDGENE'
|
||||||
alias ag='\ag --pager="less"'
|
alias ag='\ag --pager="less"'
|
||||||
alias cg='cd "$(git rev-parse --show-toplevel)"'
|
alias cg='cd "$(git rev-parse --show-toplevel)"'
|
||||||
|
alias ctags="`brew --prefix`/bin/ctags"
|
||||||
alias dots="cd $(dirname `readlink ~/.vim`)"
|
alias dots="cd $(dirname `readlink ~/.vim`)"
|
||||||
alias g='git'
|
alias g='git'
|
||||||
alias gp='git push'
|
alias gp='git push'
|
||||||
|
49
emacs
49
emacs
@ -5,7 +5,7 @@
|
|||||||
(add-to-list 'package-archives '("melpa-stable" . "http://stable.melpa.org/packages/"))
|
(add-to-list 'package-archives '("melpa-stable" . "http://stable.melpa.org/packages/"))
|
||||||
|
|
||||||
(setq package-enable-at-startup nil)
|
(setq package-enable-at-startup nil)
|
||||||
(setq sml/theme 'dark)
|
(setq sml/theme 'light)
|
||||||
(package-initialize)
|
(package-initialize)
|
||||||
(custom-set-variables
|
(custom-set-variables
|
||||||
;; custom-set-variables was added by Custom.
|
;; custom-set-variables was added by Custom.
|
||||||
@ -25,6 +25,11 @@
|
|||||||
;; Your init file should contain only one such instance.
|
;; Your init file should contain only one such instance.
|
||||||
;; If there is more than one, they won't work right.
|
;; If there is more than one, they won't work right.
|
||||||
)
|
)
|
||||||
|
|
||||||
|
;; Git interface
|
||||||
|
(use-package magit)
|
||||||
|
|
||||||
|
;; VIM IN EMACS
|
||||||
(use-package evil
|
(use-package evil
|
||||||
:ensure t
|
:ensure t
|
||||||
:config
|
:config
|
||||||
@ -32,16 +37,33 @@
|
|||||||
;; More configuration goes here
|
;; More configuration goes here
|
||||||
)
|
)
|
||||||
|
|
||||||
|
; Solariazed Configurations
|
||||||
|
(load-theme 'solarized t)
|
||||||
|
(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
|
||||||
(use-package smart-mode-line
|
(use-package smart-mode-line
|
||||||
:ensure t
|
:ensure t
|
||||||
:config
|
:config
|
||||||
(sml/setup)
|
(sml/setup)
|
||||||
)
|
|
||||||
|
;; Powerline
|
||||||
(use-package powerline
|
(use-package powerline
|
||||||
:ensure t
|
:ensure t
|
||||||
:config
|
:config
|
||||||
(powerline-center-evil-theme)
|
(powerline-center-evil-theme)
|
||||||
)
|
)
|
||||||
|
;; Set Powerline Configuration
|
||||||
|
(setq powerline-arrow-shape 'curve)
|
||||||
|
(setq powerline-default-separator-dir '(right . left))
|
||||||
|
)
|
||||||
|
|
||||||
; https://www.emacswiki.org/emacs/NeoTree
|
; https://www.emacswiki.org/emacs/NeoTree
|
||||||
(use-package neotree
|
(use-package neotree
|
||||||
:ensure t
|
:ensure t
|
||||||
@ -49,6 +71,7 @@
|
|||||||
(global-set-key [f8] 'neotree-toggle)
|
(global-set-key [f8] 'neotree-toggle)
|
||||||
(setq neo-smart-open t)
|
(setq neo-smart-open t)
|
||||||
)
|
)
|
||||||
|
<<<<<<< HEAD
|
||||||
;; 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))
|
||||||
@ -57,11 +80,33 @@
|
|||||||
(add-hook 'python-mode-hook 'projectile-mode)
|
(add-hook 'python-mode-hook 'projectile-mode)
|
||||||
|
|
||||||
;; rebind neotree in evil-mode
|
;; rebind neotree in evil-mode
|
||||||
|
=======
|
||||||
|
>>>>>>> 0c4d4a216c50c05346f138e4c5e8e73ac8f4c81a
|
||||||
(evil-define-key 'normal neotree-mode-map (kbd "TAB") 'neotree-enter)
|
(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 "SPC") 'neotree-enter)
|
||||||
(evil-define-key 'normal neotree-mode-map (kbd "q") 'neotree-hide)
|
(evil-define-key 'normal neotree-mode-map (kbd "q") 'neotree-hide)
|
||||||
(evil-define-key 'normal neotree-mode-map (kbd "RET") 'neotree-enter)
|
(evil-define-key 'normal neotree-mode-map (kbd "RET") 'neotree-enter)
|
||||||
|
|
||||||
|
;; 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)
|
||||||
(set-terminal-parameter nil 'background-mode 'dark)
|
(set-terminal-parameter nil 'background-mode 'dark)
|
||||||
(add-hook 'after-make-frame-functions
|
(add-hook 'after-make-frame-functions
|
||||||
(lambda (frame)
|
(lambda (frame)
|
||||||
|
8
vimrc
8
vimrc
@ -114,6 +114,10 @@ nmap <leader>bb :CtrlPBuffer<cr>
|
|||||||
nmap <leader>bm :CtrlPMixed<cr>
|
nmap <leader>bm :CtrlPMixed<cr>
|
||||||
nmap <leader>bs :CtrlPMRU<cr>
|
nmap <leader>bs :CtrlPMRU<cr>
|
||||||
|
|
||||||
|
" Tagbar
|
||||||
|
nmap <F8> :TagbarToggle<CR>
|
||||||
|
nmap <F7> :CtrlPTag<CR>
|
||||||
|
|
||||||
|
|
||||||
" To open a new empty buffer
|
" To open a new empty buffer
|
||||||
" This replaces :tabnew which I used to bind to this mapping
|
" This replaces :tabnew which I used to bind to this mapping
|
||||||
@ -148,3 +152,7 @@ let vim_markdown_preview_browser='Google Chrome'
|
|||||||
if filereadable($HOME . "/.vimrc.local")
|
if filereadable($HOME . "/.vimrc.local")
|
||||||
source ~/.vimrc.local
|
source ~/.vimrc.local
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Set the ctags file name
|
||||||
|
set tags=./tags;
|
||||||
|
let g:tagbar_ctags_bin='/usr/local/bin/ctags'
|
||||||
|
Loading…
Reference in New Issue
Block a user