X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=elisp.git;a=blobdiff_plain;f=emacs.el;h=ffd9665f56d53bddb1389b95ed406d80a9bd6105;hp=f95d7b7a09d4919ee2e48c141d27d6da55f2c32e;hb=713d9f26677696fc9f5e0cd1137aa185522a0d60;hpb=b8a81e4490d3fde30165e8596b4c1eb88268b19e diff --git a/emacs.el b/emacs.el index f95d7b7..ffd9665 100644 --- a/emacs.el +++ b/emacs.el @@ -1196,7 +1196,7 @@ goback argument, go back where we were." (load "vc-git") -(defun ff/git-push () (interactive) +(defun ff/git-pull-push () (interactive) (shell-command "git pull && git push" nil) ) @@ -1204,7 +1204,7 @@ goback argument, go back where we were." (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-push) (define-key global-map [(control x) (v) (P)] 'ff/git-pull) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -1773,7 +1773,7 @@ require 'optim' "Adds all the stuff to start a new python file" (interactive) (goto-char (point-min)) - (insert "#!/usr/bin/env python + (insert "#!/usr/bin/env python-for-pytorch import torch import math