From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: mopi <52hands@gmail.com> Newsgroups: gmane.emacs.help Subject: Use tab key to indent both region AND line? Date: 20 Apr 2007 05:10:40 -0700 Organization: http://groups.google.com Message-ID: <1177071040.638066.76140@n76g2000hsh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1177072534 21248 80.91.229.12 (20 Apr 2007 12:35:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Apr 2007 12:35:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 20 14:35:28 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HesKg-0002P0-2h for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Apr 2007 14:35:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HesPj-00081v-CG for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Apr 2007 08:40:35 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!n76g2000hsh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 12 Original-NNTP-Posting-Host: 192.16.134.68 Original-X-Trace: posting.google.com 1177071041 31279 127.0.0.1 (20 Apr 2007 12:10:41 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 20 Apr 2007 12:10:41 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; sv-SE; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: n76g2000hsh.googlegroups.com; posting-host=192.16.134.68; posting-account=2hN_GQ0AAACPrJKt-6-vp_n8wTh4w5Ay Original-Xref: shelby.stanford.edu gnu.emacs.help:147276 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42882 Archived-At: Hi I'm feeling a little lost when it comes to indentation and Emacs. If there is a region marked I want the tab key to indent the region. Shift-tab would preferably unindent the region. But if there is no region marked I want tab to indent the current line. This is the default behaviour in e.g Visual Studio and Ultraedit so I'm sure there is someone out there who has some code snippets to share. Thanks in advance.