How to change the face of scalar variables in emacs cperl-mode?

In cperl mode, I can change the array and hash faces with M-x customize-group RET cperl-faces RETand change Cperl Hash Faceand Cperl Hash Face. But I do not see the possibility of changing the color of scalar variables.

I tried changing font-lock-variable-name-faceboth inside the code and from Cperl Ps Print Face Properties(where I really want to change the color in print), but it does not work. I tried several cperl modes from 4.32 to rockway-perl6-branch .

I would also like that the variables did not have $ color, so the sigle stood out better in printouts (this was already set here , but was not allowed).

can someone give me any clues?

+5
source share
2 answers

Well, first you need to change cperl-modeto separate scalar variables. It allocates only arrays and hashes. He does not apply any face to scalars, with the exception of some designs, such as my.

+2
source

I know the question is old, but since I was looking for this, I want to post my solution: either run M-x customoize-groupand install cperl-highlight-variables-indiscriminatelyin t or just edit yours .emacsmanually.

0
source

All Articles