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)))))

In reply to Re^2: Adjusting emacs color themes for cperl-mode by LanX
in thread Adjusting emacs color themes for cperl-mode by LanX

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.