From: Robert Pluim <rpluim@gmail.com>
To: Timothy <tecosaur@gmail.com>
Cc: orgmode <emacs-orgmode@gnu.org>
Subject: Re: [Aside] Generating commit messages for Org
Date: Fri, 26 Nov 2021 11:21:32 +0100 [thread overview]
Message-ID: <878rxb43pv.fsf@gmail.com> (raw)
In-Reply-To: <871r3a8svb.fsf@gmail.com> (Timothy's message of "Sun, 21 Nov 2021 04:27:45 +0800")
>>>>> On Sun, 21 Nov 2021 04:27:45 +0800, Timothy <tecosaur@gmail.com> said:
Timothy> Hi All,
Timothy> A few hours ago I noticed that I’ve made a few very minor mistakes in some of my
Timothy> recent commit messages for Org. Realistically I don’t think I’m going to stop
Timothy> making occasional mistake any time soon, eve if they do become rarer. So, I’ve
Timothy> whipped up a magit hook that looks at the diff and fills in a /correct/ skeleton
Timothy> in the commit message buffer.
Timothy> For example, here’s what I get if a queue a few of my currently unstaged changes
Timothy> ┌────
Timothy> │ * lisp/org.el (org-place-formula-image, org-format-latex):
Timothy> │
Timothy> │ * lisp/org-macs.el (org-compile-file, org-async-queue):
Timothy> └────
Timothy> This currently works with elisp functions/variables/etc. and headings from
Timothy> documentation files. I’m sure it has a few rough edges, but it’s looking
Timothy> promising so far.
I suggest you look at `add-change-log-entry-other-window' and/or
`magit-generate-changelog'.
Robert
--
next prev parent reply other threads:[~2021-11-26 10:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-20 20:27 [Aside] Generating commit messages for Org Timothy
2021-11-26 10:21 ` Robert Pluim [this message]
2021-11-26 11:13 ` Timothy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878rxb43pv.fsf@gmail.com \
--to=rpluim@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=tecosaur@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).