Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Glasses mode in Emacs

How to customize the color of the symbol inserted in the "glasses mode" in Emacs? I have not found the option for this. Can anyone suggest anything?

like image 961
avp Avatar asked Mar 02 '23 07:03

avp


2 Answers

There's no option to set the face for the inserted separator (and from a brief study of the docs for emacs overlays, I don't think it's simple to add).

You can customize the face used for the capital letters that glasses-mode splits on; it's called glasses-face.

like image 113
Allen Avatar answered Mar 03 '23 21:03

Allen


You can reset glasses-separator either by hand or in your .emacs file to change the symbol. My elisp is rusty, but I think

(setq glasses-separator "~")

does that. At this point we have not changed the type face at all.

I think you may have to hack the mode (glasses.el) to accomplish this.

(defers to Allen's better reading of the question...)

like image 34
dmckee --- ex-moderator kitten Avatar answered Mar 03 '23 21:03

dmckee --- ex-moderator kitten