I know that six years is quite a long time, but I came across this question, and after many studies I did not find anything almost objective, like what I eventually dug for myself.
To say the color, the first 200 characters in your buffer, run the command:
(put-text-property 1 200 'face (cons 'foreground-color "red"))
If you need help executing this command in emacs, there is one possibility among many:
- Enter an ESC-x eval expression.
- Type or paste the above command into the mini-buffer after the prompt.
- Press ENTER.
source share