X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=emacs.el;h=f95d7b7a09d4919ee2e48c141d27d6da55f2c32e;hb=b8a81e4490d3fde30165e8596b4c1eb88268b19e;hp=ebc608ea9c4001f99be1947d262ee46aeec20ba1;hpb=1248af28f215e77a7b7ffdec23bd01f73b336edf;p=elisp.git diff --git a/emacs.el b/emacs.el index ebc608e..f95d7b7 100644 --- a/emacs.el +++ b/emacs.el @@ -598,6 +598,8 @@ load-warning buffer in case of failure." (define-key global-map [(control c) (control q)] 'ff/delete-trailing-whitespaces-and-indent) +(define-key global-map [(control x) (control o)] 'other-window) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Playing sounds ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -1192,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) +(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.) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -(load "vc-git") - (setq bbdb-file "~/private/bbdb") (when (file-exists-p bbdb-file)