bash emacs gitconf vimrc
This commit is contained in:
parent
ed930e53ed
commit
1b1d81af03
@ -47,3 +47,7 @@ function h () {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# options
|
||||||
|
export LESS=-RFX
|
||||||
|
export PAGER="less"
|
||||||
|
9
emacs
9
emacs
@ -12,12 +12,13 @@
|
|||||||
;; 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.
|
||||||
;; 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.
|
||||||
|
'(custom-enabled-themes (quote (smart-mode-line-respectful)))
|
||||||
'(custom-safe-themes
|
'(custom-safe-themes
|
||||||
(quote
|
(quote
|
||||||
("3c83b3676d796422704082049fc38b6966bcad960f896669dfc21a7a37a748fa" "c74e83f8aa4c78a121b52146eadb792c9facc5b1f02c917e3dbb454fca931223" "a27c00821ccfd5a78b01e4f35dc056706dd9ede09a8b90c6955ae6a390eb1c1e" default)))
|
("8aebf25556399b58091e533e455dd50a6a9cba958cc4ebb0aab175863c25b9a4" "3c83b3676d796422704082049fc38b6966bcad960f896669dfc21a7a37a748fa" "c74e83f8aa4c78a121b52146eadb792c9facc5b1f02c917e3dbb454fca931223" "a27c00821ccfd5a78b01e4f35dc056706dd9ede09a8b90c6955ae6a390eb1c1e" default)))
|
||||||
'(package-selected-packages
|
'(package-selected-packages
|
||||||
(quote
|
(quote
|
||||||
(color-theme-solarized neotree smart-mode-line powerline magit use-package helm evil-visual-mark-mode))))
|
(color-theme-solarized neotree smart-mode-line powerline 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.
|
||||||
@ -30,7 +31,6 @@
|
|||||||
(evil-mode 1)
|
(evil-mode 1)
|
||||||
;; More configuration goes here
|
;; More configuration goes here
|
||||||
)
|
)
|
||||||
(use-package magit)
|
|
||||||
|
|
||||||
(use-package smart-mode-line
|
(use-package smart-mode-line
|
||||||
:ensure t
|
:ensure t
|
||||||
@ -53,6 +53,9 @@
|
|||||||
(setq powerline-arrow-shape 'curve)
|
(setq powerline-arrow-shape 'curve)
|
||||||
(setq powerline-default-separator-dir '(right . left))
|
(setq powerline-default-separator-dir '(right . left))
|
||||||
|
|
||||||
|
;; Projectile
|
||||||
|
(add-hook 'python-mode-hook 'projectile-mode)
|
||||||
|
|
||||||
;; rebind neotree in evil-mode
|
;; rebind neotree in evil-mode
|
||||||
(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)
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
[format]
|
[format]
|
||||||
pretty = format:%C(auto)%h %C(green)%G? %C(red)%<(15,trunc)%aN %C(cyan)%<(15,trunc)%ar %C(white)%<(60,trunc)%s %C(auto)%d
|
pretty = format:%C(auto)%h %C(green)%G? %C(red)%<(15,trunc)%aN %C(cyan)%<(15,trunc)%ar %C(white)%<(60,trunc)%s %C(auto)%d
|
||||||
[alias]
|
[alias]
|
||||||
|
ab = "diff --name-only origin/master"
|
||||||
alias = "!git config -l | grep alias | cut -c 7-" # show all these aliases
|
alias = "!git config -l | grep alias | cut -c 7-" # show all these aliases
|
||||||
bc = !git branch --merged master | grep -v master | xargs git branch -d # delete all merged branches
|
bc = !git branch --merged master | grep -v master | xargs git branch -d # delete all merged branches
|
||||||
d = diff --color-words # prettier diffs
|
d = diff --color-words # prettier diffs
|
||||||
|
5
vimrc
5
vimrc
@ -128,6 +128,11 @@ nmap <leader>h :bprevious<CR>
|
|||||||
" Close the current buffer and move to the previous one
|
" Close the current buffer and move to the previous one
|
||||||
nmap <leader>bq :bp <BAR> bd #<CR>
|
nmap <leader>bq :bp <BAR> bd #<CR>
|
||||||
|
|
||||||
|
" FUCK EX MODE
|
||||||
|
map q: <Nop>
|
||||||
|
nnoremap Q <nop>
|
||||||
|
|
||||||
|
|
||||||
" Toggle line numbers with F1 - no more stupid help!
|
" Toggle line numbers with F1 - no more stupid help!
|
||||||
nmap <silent> <F1> :set invnumber<CR>
|
nmap <silent> <F1> :set invnumber<CR>
|
||||||
autocmd StdinReadPre * let s:std_in=1
|
autocmd StdinReadPre * let s:std_in=1
|
||||||
|
Loading…
Reference in New Issue
Block a user