Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Adjusting emacs color themes for cperl-mode

by LanX (Saint)
on Sep 24, 2015 at 11:01 UTC ( [id://1142893]=note: print w/replies, xml ) Need Help??


in reply to Re: Adjusting emacs color themes for cperl-mode
in thread Adjusting emacs color themes for cperl-mode

Thanks!

But my problem was rather that I wanted to have a generic solution which works with all themes which forgot to define the cperl-hash and array face. (some do)

ATM I'm using M-x customize-face ² to derive array and hash face from the normal variable face.

Customize face (default `all faces'): cperl-array-face

Operate on all settings in this buffer: [Revert]... [Apply] [Apply and Save] Hide Cperl Array Face:[sample] State : EDITED, shown value does not take effect until you set or +save it. Font Lock mode face used to highlight array names. INS DEL Display: all [X] Weight: bold [X] Slant: italic [X] Inherit: [INS] [DEL] Face: font-lock-variable-name-face Show All Attributes INS
(Note: Display:All is important)

after hitting "Apply and Save" this will be executed at the end of all my configs.

Seems to work well ATM and I don't need to fiddle with elisp... ;-)

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

²) or click Options -> Customize Emacs -> Specific Face

update

that's the generated lisp code which "customize" wrote into my init.el

(custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(default ((t (:family "Courier New" :foundry "outline" :slant normal + :weight bold :height 113 :width normal)))) '(cperl-array-face ((t (:inherit font-lock-variable-name-face :slant +italic :weight bold)))) '(cperl-hash-face ((t (:inherit font-lock-variable-name-face :slant i +talic :weight bold)))))

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1142893]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-03-28 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found