From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: khalil zakaria Zemmoura Newsgroups: gmane.emacs.help Subject: Re: Customizing perl array face [cperl-mode] Date: Mon, 10 Apr 2017 20:10:15 +0100 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1491851474 24425 195.159.176.226 (10 Apr 2017 19:11:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Apr 2017 19:11:14 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: John Mastro Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 10 21:11:07 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cxeiQ-0006Cj-Di for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Apr 2017 21:11:06 +0200 Original-Received: from localhost ([::1]:35897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxeiU-0002hA-Jq for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Apr 2017 15:11:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxei0-0002fe-0U for help-gnu-emacs@gnu.org; Mon, 10 Apr 2017 15:10:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cxehy-00081O-IP for help-gnu-emacs@gnu.org; Mon, 10 Apr 2017 15:10:39 -0400 Original-Received: from mail-vk0-x232.google.com ([2607:f8b0:400c:c05::232]:34981) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cxehy-00080a-3r for help-gnu-emacs@gnu.org; Mon, 10 Apr 2017 15:10:38 -0400 Original-Received: by mail-vk0-x232.google.com with SMTP id r69so101291012vke.2 for ; Mon, 10 Apr 2017 12:10:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=lREMYTLmJNY6B5Rma/zChcOr4TSq8b4IX+aeMX9ns5A=; b=nlLGi+xV7jKVBxQ2PaMkAmT1nX3gtjU32BsMcBhc4HR++XtZ3aloQCznQW7HEPQcKy 5kUD02jDyKiM26TwyVnF1qpL03x8wztM/FuyFnDCm/SAlV9ib8Z6eGeehHVNBJjgoLCL 5eaTivrg8AAYciYMnGG3VBu6spsLlf8QUWXNRLJk2AGitiJRbMuZ2oEyXk2FAb1mFDKx g1TtH4wam6rTRfdrP4Znk1YPcZN9jAbDI6FXoFYUzDxXX7sAcB95lPhjaIPuQP+8UALn +Mj/CQo4UpxWpmwd8R5VkZDr+IVf6Xv10d8nB5tyeKA8yjDg7G/2iZ7QAbehrahYDeP9 GKBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=lREMYTLmJNY6B5Rma/zChcOr4TSq8b4IX+aeMX9ns5A=; b=C6njc51S1VVItpVcR/TNOA5ywGIOpwIP/ncafnLwa2EK8PjGy4R2PefGnTqIsDRWqb is1veop/re3hTfsUG+9aPfHsbQbgEXoZS4X23TwXTr7k8i+dxivdPS1hzI1ZHJyMRAzL do9mitVKj475ZL8PYcAanhSGzuUlysL2r7GD5gbK71ZmHIJgSZVxd5rpr96g4bpKIC1A 45okwGILAIfFAUVOBrE9jehRa3lM9gDfed0wTpRfKGPzfV0aHw9hIbeadVwka/dA1JAl hzuWRF/yt2N0d0pltsjp06MqBX/db9nIAy7FympMJh/0MqZzU2tdJhO1HWcDyThRQIpT mb7g== X-Gm-Message-State: AN3rC/5BntRnwqzFO+oAZ8cZ8P5WbXy5kqSXgH92ivqAeOMoY2RjpxFfvZpU4tQOFUKj9IsxpK497PGv5soVRw== X-Received: by 10.31.218.193 with SMTP id r184mr1206841vkg.112.1491851435982; Mon, 10 Apr 2017 12:10:35 -0700 (PDT) Original-Received: by 10.176.93.29 with HTTP; Mon, 10 Apr 2017 12:10:15 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::232 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112742 Archived-At: > 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=C3=A8me 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