projects
/
elisp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
91954b3
)
Update.
author
Francois Fleuret
<francois@fleuret.org>
Sat, 25 Feb 2017 13:00:13 +0000
(14:00 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Sat, 25 Feb 2017 13:00:13 +0000
(14:00 +0100)
emacs.el
patch
|
blob
|
history
diff --git
a/emacs.el
b/emacs.el
index
0106abb
..
f95d7b7
100644
(file)
--- a/
emacs.el
+++ b/
emacs.el
@@
-1194,12
+1194,23
@@
goback argument, go back where we were."
;; (define-key python-mode-map [(shift right)] 'indent-rigidly-right-to-tab-stop)
;; (define-key python-mode-map [(shift left)] 'indent-rigidly-left-to-tab-stop)
;; (define-key python-mode-map [(shift right)] 'indent-rigidly-right-to-tab-stop)
;; (define-key python-mode-map [(shift left)] 'indent-rigidly-left-to-tab-stop)
+(load "vc-git")
+
+(defun ff/git-push () (interactive)
+ (shell-command "git pull && git push" nil)
+ )
+
+(defun ff/git-pull () (interactive)
+ (shell-command "git pull" nil)
+ )
+
+(define-key global-map [(control x) (v) (p)] 'ff/git-push)
+(define-key global-map [(control x) (v) (P)] 'ff/git-pull)
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; The big stuff (bbdb, mailcrypt, etc.)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; The big stuff (bbdb, mailcrypt, etc.)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-(load "vc-git")
-
(setq bbdb-file "~/private/bbdb")
(when (file-exists-p bbdb-file)
(setq bbdb-file "~/private/bbdb")
(when (file-exists-p bbdb-file)