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: Customizing perl array face [cperl-mode] Date: Sat, 8 Apr 2017 23:46:00 +0100 Message-ID: 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 1491722058 6708 195.159.176.226 (9 Apr 2017 07:14:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 9 Apr 2017 07:14:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 09 09:14:15 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 1cx733-0000wd-TB for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Apr 2017 09:14:09 +0200 Original-Received: from localhost ([::1]:57555 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cx739-0000NR-Ed for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Apr 2017 03:14:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwz7f-0004T0-V3 for help-gnu-emacs@gnu.org; Sat, 08 Apr 2017 18:46:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwz7e-0004hD-VS for help-gnu-emacs@gnu.org; Sat, 08 Apr 2017 18:46:23 -0400 Original-Received: from mail-vk0-x22c.google.com ([2607:f8b0:400c:c05::22c]:35569) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cwz7e-0004gz-PK for help-gnu-emacs@gnu.org; Sat, 08 Apr 2017 18:46:22 -0400 Original-Received: by mail-vk0-x22c.google.com with SMTP id r69so94718400vke.2 for ; Sat, 08 Apr 2017 15:46:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=zquqY95TQuhFPPEnuOcIPbBxZW6CiFyuKT2AuHSQW+o=; b=AHB/dliU94pk/IbGMjU2tjCBfSK9aES5hjAZ+UyRtFEEtz23b86fopraiSem+B3YGH SXCD5iSldKRKH8WCGKCzi97ub7gzjgMIPcNYC5ATlfqcag5C5rPTG1Y2TJMiiAeFXsUl hrOM1d4CT2zvB/PVAmaoE/OXRxJpR7n2aHuv1COGgCmzdo7zJo4szYPZ0u0stdX2WyF/ TlpHyLkVh35VAQ94jJNS54uNMaFhO1VcD81J4OCgxcHNakyJ+I4tE34Vma25WuI6Nn+D 1r+NU+sv+q+lxJAm1USgRVWhc4C+ci8uZ1S3+QGB55XNkIHFq7jEBwo8nV+w+/0Y0gO/ O8Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=zquqY95TQuhFPPEnuOcIPbBxZW6CiFyuKT2AuHSQW+o=; b=DI8Iy4ibKFa4ERAqczDxVnfw/X7bN8vNev6ClUVZe8557s6oWCIY+1dTCRUkwcWiFE SDaWtfSznM2ckKbn6MM8VCmMpBmbgj4fhuP2MrizMPJ2INsbYuzqrBrrL2OOViYdtpOy VCEVHxtWzHfFopYJc6h4K9u3k08vqKvpI9BaRS2ekXoDwlT8onmrMu098TapgeCQnlxl 5KhGomFS7S+8nGdujEV3t8knWZGCb3yEMERkVtwCRNGzyqSsrqKSaTriz5s0juFpa3ED 3vKI+skEWLTO3+1e+ZC0xYjNkQp0EDVkI+IpzZ2GfF27XjYjMtYQ/b0NafiKsxH4TUJi m03Q== X-Gm-Message-State: AFeK/H242Fe7EXqFVEBGYozMvBklIfnd1BEKvNBA+hWzCPVFKbDmmBB1lVo/3yDtrv+YGVx8rE0wL94x3l9nnA== X-Received: by 10.31.218.195 with SMTP id r186mr18197971vkg.112.1491691580423; Sat, 08 Apr 2017 15:46:20 -0700 (PDT) Original-Received: by 10.176.25.39 with HTTP; Sat, 8 Apr 2017 15:46:00 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::22c X-Mailman-Approved-At: Sun, 09 Apr 2017 03:13:49 -0400 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:112726 Archived-At: 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=C3=A8me 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