Skip to content

Instantly share code, notes, and snippets.

@dzzzchhh
Created August 5, 2022 12:13
Show Gist options
  • Select an option

  • Save dzzzchhh/e4c4015df003a7b4a9ecd4be2f5ee523 to your computer and use it in GitHub Desktop.

Select an option

Save dzzzchhh/e4c4015df003a7b4a9ecd4be2f5ee523 to your computer and use it in GitHub Desktop.
(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