Hopefully a simple question.
I code in c++ in emacs with a dark background and the syntax highlighting is perfect for viewing that way, however when I print on white paper, some of the colours like yellow/orange don't show well against the light background.
I have tried doing M-x invert-faces default in the buffer and then printing, but this has no effect.
I am able to select the word, do M-x customize-face, and change the foreground colour this way, which works, but I don't want to do this when I'm printing. It's variable names that I want to change the colour of but only when printing.
What I would like to do it have a custom functions, which would temporarily change all variable names in that buffer to a different colour, print it, and then change them back.
The output of customize-buffer looks like:
Editing a setting changes only the text in this buffer.
To apply your changes, use the Save or Set buttons.
Saving a change normally works by editing your init file.
For details, see [Saving Customizations] in the [Emacs manual].
Operate on all settings in this buffer that are not marked HIDDEN:
[Set for current session] [Save for future sessions]
[Undo edits] [Reset to saved] [Erase customizations] [Exit]
Font Lock Variable Name Face:(sample) [Hide Face]
[State]: SAVED and set.
Font Lock mode face used to highlight variable names.
Groups: [Font Lock Faces]
Choice: [Value Menu]
Attributes: [ ] Font Family: *
[ ] Font Foundry: *
[ ] Width: *
[ ] Height: *
[X] Weight: [Value Menu] light
[ ] Slant: *
[ ] Underline: *
[ ] Overline: *
[ ] Strike-through: *
[ ] Box around text: *
[ ] Inverse-video: *
[X] Foreground: #FF8400 (sample)
[ ] Background: *
[ ] Stipple: *
[ ] Inherit: *
Any thoughts on how to proceed?
Thanks
Joey