parent
0230ce4767
commit
1b603a109a
|
@ -111,7 +111,13 @@ map eeg shell aunpack -e %s -X "$HOME/games/"
|
||||||
|
|
||||||
## Git
|
## Git
|
||||||
map ega shell -w git add %s
|
map ega shell -w git add %s
|
||||||
map egr shell -w git checkout %s
|
map egr shell -w git checkout -- %s
|
||||||
|
map egc shell git commit
|
||||||
|
map egC shell git commit -a
|
||||||
|
map egd shell git diff %f
|
||||||
|
map egD shell git diff %f %s
|
||||||
|
map egp shell -w git pull
|
||||||
|
map egP shell -w git push
|
||||||
map egs shell -w git status -uno
|
map egs shell -w git status -uno
|
||||||
|
|
||||||
## Video
|
## Video
|
||||||
|
|
|
@ -60,6 +60,19 @@
|
||||||
;; end.
|
;; end.
|
||||||
;; (add-hook 'before-save-hook 'delete-trailing-whitespace)
|
;; (add-hook 'before-save-hook 'delete-trailing-whitespace)
|
||||||
|
|
||||||
|
;; Highlight trailing whitespaces. For programming languages only, so that it
|
||||||
|
;; does not affect buffer like calendar and so on.
|
||||||
|
(mapcar
|
||||||
|
(lambda (mode-hook)
|
||||||
|
(add-hook
|
||||||
|
mode-hook
|
||||||
|
(lambda () (interactive)
|
||||||
|
(setq show-trailing-whitespace t))))
|
||||||
|
'(prog-mode-hook lua-mode-hook))
|
||||||
|
|
||||||
|
;; Remove whitespaces on region, or whole file.
|
||||||
|
(define-key my-keys-minor-mode-map (kbd "C-\\") 'delete-trailing-whitespace)
|
||||||
|
|
||||||
;; Abbreviation support
|
;; Abbreviation support
|
||||||
(setq default-abbrev-mode t)
|
(setq default-abbrev-mode t)
|
||||||
|
|
||||||
|
@ -166,12 +179,3 @@
|
||||||
(setq org-agenda-files '("~/todo.org"))
|
(setq org-agenda-files '("~/todo.org"))
|
||||||
(setq org-enforce-todo-dependencies t))
|
(setq org-enforce-todo-dependencies t))
|
||||||
|
|
||||||
;; Highlight trailing whitespaces. For programming languages only, so that it
|
|
||||||
;; does not affect buffer like calendar and so on.
|
|
||||||
(mapcar
|
|
||||||
(lambda (mode-hook)
|
|
||||||
(add-hook
|
|
||||||
mode-hook
|
|
||||||
(lambda () (interactive)
|
|
||||||
(setq show-trailing-whitespace t))))
|
|
||||||
'(prog-mode-hook lua-mode-hook))
|
|
||||||
|
|
Loading…
Reference in New Issue