I am editing a bash theme file for emacs. I can't seem to figure out which keyword defines the color of heredoc in bash.


some code here


How can I set the color coding for these blocks?

Thank you.

1 Answer 1


Put your cursor within the heredoc, and do M-x customize-face: the face suggested by default should be the one present under the cursor.

  • I wish folks would pay more attention to usability. "tan1" on white isn't as bad as yellow on white, but still ....
    – Bruce
    Commented Aug 9, 2018 at 14:21
  • @Bruce: we spend a fair bit of time fiddling with the default faces so they're legible. So if they're not legible for you, I recommend you M-x report-emacs-bug.
    – Stefan
    Commented Aug 9, 2018 at 16:33
  • Okay. If you have access to Photoshop, you can put the foreground and background colors into an image and ask it to tell you about the contrast. (My Apple has died and won't have a replacement for two more weeks, so I can't. But it's a nice feature that would give you some confirmation about contrast and legibility. I'm also out of town using a laptop without emacs, so M-x report-emacs-bug isn't available for a couple of days, too. :)
    – Bruce
    Commented Aug 11, 2018 at 15:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.