Navigation Menu

Skip to content

Commit

Permalink
added cheat-fu-commit function
Browse files Browse the repository at this point in the history
  • Loading branch information
jpablobr committed Apr 28, 2011
1 parent 3ea54d2 commit 511bbde
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion cheat-fu.el
@@ -1,5 +1,5 @@
;; cheat-fu.el
;; Time-stamp: <2011-04-26 21:34:50 jpablobr>
;; Time-stamp: <2011-04-28 11:58:24 jpablobr>

;; Copyright (C) Jose Pablo Barrantes 2011 <xjpablobrx@gmail.com>

Expand Down Expand Up @@ -90,6 +90,19 @@
(shell-command-to-string
(cheat-fu-string-replace "%s" buffer-file-name cheat-fu-roff-convert-command)) t)

(defun cheat-fu-commit (what)
"Git commit all helper."
(interactive "sCheat-fu commit msg: ")
(let ((buffer (shell "*cheat-fu commit*")))
(setq cmd (concat
"cd "
cheat-fu-root
" && git add . && git commit -v -a -m" " \"cheat-fu.el commit: "
what (format-time-string "at: %a %Y-%m-%d - %l:%M %p\"")))
(ansi-color-for-comint-mode-on)
(compilation-shell-minor-mode 1)
(comint-send-string buffer (concat cmd "\n"))))

(defun cheat-fu-sheets ()
"Uses your completing read to quickly jump to the sheets."
(interactive)
Expand Down

0 comments on commit 511bbde

Please sign in to comment.