all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: khalil zakaria Zemmoura <zemmoura.khalil@gmail.com>
To: John Mastro <john.b.mastro@gmail.com>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: Customizing perl array face [cperl-mode]
Date: Mon, 10 Apr 2017 20:10:15 +0100	[thread overview]
Message-ID: <CAP4XKhWfyxD9bd3zuRuNsZYpkGQ-pnCSppooH6roSyXOzZTmTA@mail.gmail.com> (raw)
In-Reply-To: <CAOj2CQQzkiF8p7D0oT1QNAQnxrX8tYJrCu_JXiguQWRLkK5ijQ@mail.gmail.com>

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

Oh yes, i did not metion it in the mail.
I used setq in my custominit.org
and this solved my problem but has some limitations, because i can't change
the color of the forground.
that's why i am interesting to know how can i hack this face to get it
fully costumizable (lispy way)

thank's again for your response


      reply	other threads:[~2017-04-10 19:10 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
2017-04-10 19:10   ` khalil zakaria Zemmoura [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAP4XKhWfyxD9bd3zuRuNsZYpkGQ-pnCSppooH6roSyXOzZTmTA@mail.gmail.com \
    --to=zemmoura.khalil@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=john.b.mastro@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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.