Created
August 5, 2022 12:13
-
-
Save dzzzchhh/e4c4015df003a7b4a9ecd4be2f5ee523 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defun git/commit-from-current-org-heading () | |
| (interactive) | |
| (setq commit-message (list/join (org-get-outline-path t) " - ")) | |
| (shell-command (format "git commit -m %s" commit-messsage)) | |
| (org-todo "DONE")) | |
| (defun list/join (list delimiter) | |
| (mapconcat 'identity list delimiter)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment