typoel
typoel copied to clipboard
typo ignores `org-tags-column` in org-mode
Hello, I have saw this bug for quite long time and just recently I realized it only happens when typo-mode is activated.
The problem: When inserting a character handled by typo-mode (e.g., a period) at a heading in org-mode, tags in that heading are not kept aligned as specified in the variable org-tags-column. It happens for both positive and negative values of org-tags-column.
To reproduce: Set org-tags-column to -80. Open a buffer in org-mode. Start typo-mode. Start a org-mode heading in the buffer. Add a tag to the heading. Continue typing letters and numbers in the heading. You will see that the tag is kept aligned. Type a character handled by typo-mode, e.g., a . (period), a - (dash), etc. You will see that the tag is one character off to the right and it have not been kept aligned as expected. This behavior does not happens when typo-mode is deactivated.
Inconvenience: This behavior is annoying for who usually type a character handled by typo-mode as the last character in the heading, e.g., a . (period).
Thanks for typo.el! It is really handy!
Thank you for the report, and I'm glad typo.el is useful to you! I'm not sure how to handle this sensibly with org-mode, if anyone has suggestions and ideally a PR, I'd be happy :-D