From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: Matching Parentheses Date: Sat, 3 Oct 2020 15:11:33 +0200 Message-ID: References: <83r1qffsy4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36153"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 03 15:13:47 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kOhM9-0009JC-9I for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 03 Oct 2020 15:13:45 +0200 Original-Received: from localhost ([::1]:56410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOhM8-000507-3C for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 03 Oct 2020 09:13:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40472) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOhK7-0004zy-UL for help-gnu-emacs@gnu.org; Sat, 03 Oct 2020 09:11:40 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:41601) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOhK5-0006KE-Og; Sat, 03 Oct 2020 09:11:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1601730693; bh=qRn0MTEBSblHeOy5hRjYCNaXkZ268+1dKlPmW76Bxck=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=NcIWzFmEYSmo0iNkJOx+OwHPp0Pp1n5UoM9UhwkptmOUU86z/dC4hKajAilGcieUs W2PsowUoudWW2yhvsy3r029cQuF6wkkRr+X5fbhiggfrsMAxCIjQY1wur3AO9sUOgJ cRCX7K9BBzv8/4AFwsRUhamP39jl00w+VLleFz8o= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs06.server.lan [172.19.170.174]) (via HTTP); Sat, 3 Oct 2020 15:11:33 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <83r1qffsy4.fsf@gnu.org> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:fYknMssZfXzid467QcUGuoal16Am5HIu5pyxLBVX7xpjVtWn+YuIKa5PshIdEkUPzYIY/ wIu3MOIR7ss9Uux4a6bOemccmkvgC3dholmMX/r0pOcKZad4IqZwP5+4On5aoSqU5PikReJN0Ww8 KJFAoh9buRav6rsnvgWXpzzHoDYNpck3vbCXDOJ+SlTui4CRMwYAXqMZLiUxxISbUusrhpeVE1mE wIxyL2HuBgeL8cOXUGcj0P/kYyAm1N+xammvlIVdGTiTTJG24YuVXhCpaKqpSEyPs2os0A57uJIi Mw= X-UI-Out-Filterresults: notjunk:1;V03:K0:RLqSsC4RACQ=:gumFcS4Vkt3XNPXw0P2m0p fl8dT44IU7j/ZeHfmMLz1pL9GmljPi1A+26iq7cjGUuKw3g5g/lVrEUMrehe/GiVxDBIha1YT TleD1uchwZS8QeP2J2WnKdZV/TwlrcKWBGHOOxOXhrM3Zp5Q8ioNFqerCduUhYFOa4ZmR6J9C 1wiZtaVT81hlHglmm5Z9Jqwj+Z7aFDEeNeRp6RzRjD3RHbILi2ZeEtGAG2rFuDVO00/0I+Whb 627wV6KKskWvtnON1yAcWvKrvR+mpJFTPjxTMd6Qmk7ZqwMMHz6K0R4dYAJalTiuu4mFQf8sv p6VgHCzRtDUW53ntnyqHnDFungoZG9g5tLHA4yrSP4/XZraBLgo6pZJ0qZ5/4DuVxWdPOrof0 2FdbrTOhS6fvjPZljACfY5ha14xZjhOuy42arOFZ/bpoT8/KKWQbI/qxjB343swPDk9iU9OZb vDTmf6OyrxNLicauhrGxvYS2fivPvXw/ApH4dQvGM7unTsehTabyMFYBg944ZAOvMt5jf/4bq 7FdLxP7GboCL8lusPJhP/6gx8LGTbrE+PGU/mMBs7yg1vuypsYXcub2xNw1NvjZRgIo0Wr6Lz 2SX6A8pp6VCTGjW7yfRLpGTyXaELKLcUsJbYpfxNd38nlpkaE15aX6Q1i+csGL3JaNWtyRoYn 7xx6h4+lqQ9CTgV+l1P8OSBtVG1WOOUyu1suMs7smTGcnQMADqYJzJsPvRNP/CEGFaQI= Received-SPF: pass client-ip=212.227.15.19; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/03 09:11:34 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:124256 Archived-At: I have done it as follows. Is it good to first call (require 'paren). I want to either highlight either the parentheses only or the entire expression using a keybinding, but unsure how to go about using setq. For normal keybindings I use (global-set-key (kbd " s") 'shell) Here is thi code for highlighting parentheses (require 'paren) (show-paren-mode 1) (setq show-paren-delay 0) (set-face-background 'show-paren-match "#76e8f2") (set-face-foreground 'show-paren-match "#3c0069") ; Highlight the Entire Expression (setq show-paren-style 'parenthesis) ;(setq show-paren-style 'expression) > Sent: Saturday, October 03, 2020 at 12:29 PM > From: "Eli Zaretskii" > To: help-gnu-emacs@gnu.org > Subject: Re: Matching Parentheses > > > From: Christopher Dimech > > Date: Sat, 3 Oct 2020 12:39:33 +0200 > > > > (set-face-background 'show-paren-match (face-background 'default)) > > (set-face-foreground 'show-paren-match "#def") > > (set-face-attribute 'show-paren-match nil :weight 'extra-bold) > > This is wrong: show-paren-mode shows the parentheses with a different > background color, and you here set the background to the default one, > thus effectively disabling the feature. > > Find a background color that makes the parentheses look prominently, > and change only the background of the show-paren-match face. Leave > all the other attributes of the show-paren-match face unspecified. > >