From: John Mastro <john.b.mastro@gmail.com>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Cc: khalil zakaria Zemmoura <zemmoura.khalil@gmail.com>
Subject: Re: Customizing perl array face [cperl-mode]
Date: Mon, 10 Apr 2017 10:21:48 -0700 [thread overview]
Message-ID: <CAOj2CQQzkiF8p7D0oT1QNAQnxrX8tYJrCu_JXiguQWRLkK5ijQ@mail.gmail.com> (raw)
In-Reply-To: <CAP4XKhUL31a_PbgdWsQ17bjd_vNwc3zOr_jfzLK=_ym4C+R0sw@mail.gmail.com>
To:
Subject:
From: John Mastro <jbm@jbm.io>
--text follows this line--
khalil zakaria Zemmoura <zemmoura.khalil@gmail.com> wrote:
> 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:
[snip]
> 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)?
`custom-set-faces' is a function that applies a list of face specs. And
this:
(cperl-array-face ((t (:foreground "yellow" :weight bold))))
is a face spec, where `cperl-array-face' is the name of the face and the
rest specifies how that face will look. The face spec is data (a list),
it doesn't do anything on its own. That's why it's quoted.
> Witout using the easy customization interface, I ended setting the
> cperl-dark-background to nil that way:
> (cperl-dark-background nil)
That doesn't seem right. The expression (cperl-dark-background nil) by
itself would call a function `cperl-dark-background' with the argument
nil, which won't work as there is no such function
`cperl-dark-background'. It's a variable, so you would use something
like (custom-set-variables '(cperl-dark-background nil)) or
(setq cperl-dark-foreground nil).
John
next prev parent reply other threads:[~2017-04-10 17:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-08 22:46 Customizing perl array face [cperl-mode] khalil zakaria Zemmoura
2017-04-10 17:21 ` John Mastro [this message]
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=CAOj2CQQzkiF8p7D0oT1QNAQnxrX8tYJrCu_JXiguQWRLkK5ijQ@mail.gmail.com \
--to=john.b.mastro@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=zemmoura.khalil@gmail.com \
/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).