From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: unobstrusive way to show indentation Date: Thu, 12 Jan 2012 08:39:35 -0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1326386395 4404 80.91.229.12 (12 Jan 2012 16:39:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 12 Jan 2012 16:39:55 +0000 (UTC) To: "'Le Wang'" , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 12 17:39:50 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RlNgr-0003R3-Ce for ged-emacs-devel@m.gmane.org; Thu, 12 Jan 2012 17:39:49 +0100 Original-Received: from localhost ([::1]:60015 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlNgq-0003r8-Sd for ged-emacs-devel@m.gmane.org; Thu, 12 Jan 2012 11:39:48 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:53954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlNgn-0003qo-Nc for emacs-devel@gnu.org; Thu, 12 Jan 2012 11:39:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RlNgh-0002Kz-UO for emacs-devel@gnu.org; Thu, 12 Jan 2012 11:39:45 -0500 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:42026) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlNgh-0002Ku-Nn for emacs-devel@gnu.org; Thu, 12 Jan 2012 11:39:39 -0500 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id q0CGdbWG009146 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 12 Jan 2012 16:39:37 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q0CGdajA005346 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 Jan 2012 16:39:36 GMT Original-Received: from abhmt105.oracle.com (abhmt105.oracle.com [141.146.116.57]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q0CGdaDp020397; Thu, 12 Jan 2012 10:39:36 -0600 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 12 Jan 2012 08:39:36 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AczRRRCy2J+1tscFTIi7gk4oOS8XtAAAplAg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090205.4F0F0CCA.0025,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:147620 Archived-At: > How difficult would it be to implement some way to show > indentation levels in an unobstrusive way? Sublime text > and other modern editors do this by drawing a thin > vertical line down from (back-to-indentation). I find it > really helpful when reading code. This stackoverflow > question clarifies what I'm after, although I didn't ask it. > I find this really helpful when reading a piece of code > with many block levels, especially since the standard > indentation level for ruby is 2 spaces. > > I guess it can be faked by changing the face of that column, > but that would be more obstrusive than a thin line. Maybe > there is another solution I haven't thought of? > http://stackoverflow.com/questions/8836336/sublime-text-2-like-block-highlightin g-in-emacs It's not quite the same thing, but you get a similar benefit from the features mentioned here: http://www.emacswiki.org/emacs/HighlightCurrentColumn http://www.emacswiki.org/emacs/VlineMode Vline can use a thin line (or a face). Column-marker highlighting stays put (doesn't move with the cursor), and you can highlight any number of columns, but it uses a face, not a thin line.