From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Krishnakant Newsgroups: gmane.emacs.help Subject: Re: how to highlight block end in Python-mode indentation Date: Sat, 20 May 2017 12:07:47 +0530 Message-ID: References: <2d520b33-249a-f112-8ab6-1b89c3c76512@openmailbox.org> <87efvldoqt.fsf@fastmail.fm> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1495262311 15358 195.159.176.226 (20 May 2017 06:38:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 20 May 2017 06:38:31 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 Cc: help-gnu-emacs@gnu.org To: Joost Kremers Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 20 08:38:25 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 1dBy1w-0003om-Ql for geh-help-gnu-emacs@m.gmane.org; Sat, 20 May 2017 08:38:24 +0200 Original-Received: from localhost ([::1]:33122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBy22-0000sy-EH for geh-help-gnu-emacs@m.gmane.org; Sat, 20 May 2017 02:38:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBy1a-0000sh-Lx for help-gnu-emacs@gnu.org; Sat, 20 May 2017 02:38:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dBy1X-0001JO-Jg for help-gnu-emacs@gnu.org; Sat, 20 May 2017 02:38:02 -0400 Original-Received: from lb1.openmailbox.org ([5.79.108.160]:36224 helo=mail.openmailbox.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dBy1X-0001J8-Cs for help-gnu-emacs@gnu.org; Sat, 20 May 2017 02:37:59 -0400 Original-Received: by mail.openmailbox.org (Postfix, from userid 20002) id E9B725121DE; Sat, 20 May 2017 08:37:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1495262277; bh=7egxvmA0bM8F7lsNsRJTqFIxEdrHUnBSdrpz6wTbODQ=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=MmkWB299PklFEY2Y6OZPKoTlihveIUBcC962hWpT7CJqM2J3L+5LbBCGu4K9Olyn2 nVJeNKIXM1Ina8ZDYBe4NjGw5FZ9grnc5xNCDnIrRNgwpCd4Pbotm3+x1KrxvQ7dpp vpBoLDJv9/HS+B3w3hrYsrZxTdmmNDIAxP8n+CqM= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1495262277; bh=7egxvmA0bM8F7lsNsRJTqFIxEdrHUnBSdrpz6wTbODQ=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=MmkWB299PklFEY2Y6OZPKoTlihveIUBcC962hWpT7CJqM2J3L+5LbBCGu4K9Olyn2 nVJeNKIXM1Ina8ZDYBe4NjGw5FZ9grnc5xNCDnIrRNgwpCd4Pbotm3+x1KrxvQ7dpp vpBoLDJv9/HS+B3w3hrYsrZxTdmmNDIAxP8n+CqM= In-Reply-To: <87efvldoqt.fsf@fastmail.fm> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 5.79.108.160 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:113081 Archived-At: On Friday 19 May 2017 05:48 PM, Joost Kremers wrote: > > On Fri, May 19 2017, Krishnakant wrote: >> let's say I have my cursor on a def func(): >> >> I wish to know if there is a way to highlite where this indented >> block of >> function ends? >> >> Same applies to if, for and while etc. >> >> It comes in very handy when there is nested indentation. > > Perhaps not exactly what you're looking for, but it should serve the > same purpose: check out the packages highlight-indentation or (my > personal preference) indent-guide. HI, I tryed indent-gide and it sutes perfectly. Just one question. How can I have it work for every block and not just for class and function in Python? It is not effective for if, while try: catch etc. I am sure it can be made to work because the screenshot on the github page has it there. Just wondering what to toggle. Happy hacking. Krishnakant.