diff --git a/.emacs.d/jlj-generic.el b/.emacs.d/jlj-generic.el index 84e1556..62bca83 100644 --- a/.emacs.d/jlj-generic.el +++ b/.emacs.d/jlj-generic.el @@ -261,6 +261,13 @@ (setq mu4e-view-show-images t)) +(defun magit-add-current-buffer () + "Adds (with force) the file from the current buffer to the git repo" + (interactive) + (shell-command (concat "git add -f " + (shell-quote-argument buffer-file-name)))) + + (server-start) ;;; jlj-generic.el ends here