From: khalil zakaria Zemmoura <zemmoura.khalil@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Customizing perl array face [cperl-mode]
Date: Sat, 8 Apr 2017 23:46:00 +0100 [thread overview]
Message-ID: <CAP4XKhUL31a_PbgdWsQ17bjd_vNwc3zOr_jfzLK=_ym4C+R0sw@mail.gmail.com> (raw)
Hi,
I would like to get rid of the array highlight of the array in Cperl mode,
Since i am a begginer in lisp i give you the code that customize the array
face and what i did to solve my problème tomporeraly:
(defface cperl-array-face
`((((class grayscale) (background light))
(:background "Gray90" :weight bold))
(((class grayscale) (background dark))
(:foreground "Gray80" :weight bold))
(((class color) (background light))
(:foreground "Blue" :background "lightyellow2" :weight bold))
(((class color) (background dark))
(:foreground "yellow" :background ,cperl-dark-background :weight bold))
(t (:weight bold)))
"Font Lock mode face used to highlight array names."
:group 'cperl-faces)
The code fot the cperl-dark-background is :
(defvar cperl-dark-background
(cperl-choose-color "navy" "os2blue" "darkgreen"))
when using the easy customization interface here what was added to my
init.el
(custom-set-faces
'(cperl-array-face ((t (:foreground "yellow" :weight bold)))))
when i copy this (cperl-array-face ((t (:foreground "yellow" :weight
bold)))) in my custominit.org and erase that cusom-set -face part, it don't
work.
I was wondering why this code works only under (custom-set-face)?
Witout using the easy customization interface, I ended setting the
cperl-dark-background to nil that way:
(cperl-dark-background nil)
I feel like there is a better way of doing that.
Can someone help me improuve that
Best Regards
Zakaria
next reply other threads:[~2017-04-08 22:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-08 22:46 khalil zakaria Zemmoura [this message]
2017-04-10 17:21 ` Customizing perl array face [cperl-mode] John Mastro
2017-04-10 19:10 ` khalil zakaria Zemmoura
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAP4XKhUL31a_PbgdWsQ17bjd_vNwc3zOr_jfzLK=_ym4C+R0sw@mail.gmail.com' \
--to=zemmoura.khalil@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).