7

I prefer using variable-width fonts in Emacs whenever I can. That said, Org Mode tags are horribly aligned when headings use variable-width fonts, even if the tags themselves use fixed-width fonts. Is it possible to continue using variable-width fonts for org headings and have tags properly aligned?

Another acceptable solution would be to customize Org Mode faces by file extension. This would allow the use of fixed-width fonts for org headings in .txt files, where I use a lot of tags, and variable-width fonts for .org files, where I rarely use tags. I just don't know how to customize faces based on file extension.

The first situation, where I continue using variable-width fonts, is preferred; I'm just not hopeful that such a solution exists.

  • 3
    One option that you may have not considered, is no alignment at all -- which is what I have been using for the past year and am quite happy with it. The last character of my title is a period, and then there is a space, and then the tags begin -- nothing is ever at flush-right. – lawlist Mar 18 '15 at 6:32
  • 1
    Check display properties. This can be used to insert a space of a certain width, including pixels. shr uses this. Then submit patch. It should probably plug in to org-indent-mode. Otherwise make a feature request. – rasmus Mar 18 '15 at 14:20
  • Thanks for the suggestion, @lawlist. I've been using your space-separated method and it seems to work just fine for me. Replying to the other comment, I think I've explored all the options currently available. I've never submitted a feature request--I'll look into how to do that. – kgo Jun 17 '15 at 12:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.