janusvm / emacs-gitmoji

Insert gitmoji in Emacs
GNU General Public License v3.0
8 stars 3 forks source link

Append white space after insert gitmoji #5

Open dcaixinha opened 1 year ago

dcaixinha commented 1 year ago

Some times I'm editing a commit and I noticed there isn't a gitmoji associated with it. When that happens I put the cursor on the beginning of the line and call gitmoji-insert-emoji, and every time I need to get back to insert mode to add an additional whitespace.

Perhaps we could have an option (defcustom?) to append a whitespace after inserting the gitmoji. Or maybe check the region in front and if we're inserting next to anything other than a whitespace, automatically insert the whitespace. WDYT?

janusvm commented 1 year ago

Interesting idea! I think that does make sense to add — if you have an idea of how to do it, you're welcome to submit a PR, otherwise I'll look into it when I can 😄