From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vaidheeswaran C Newsgroups: gmane.emacs.help Subject: Re: While editing a CMake file, how to turn off smart indentation? Date: Fri, 17 Jul 2015 11:29:17 +0530 Message-ID: <55A899B5.7070109@gmail.com> References: Reply-To: vaidheeswaran.chinnaraju@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1437112771 1291 80.91.229.3 (17 Jul 2015 05:59:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jul 2015 05:59:31 +0000 (UTC) To: Yaron Cohen-Tal , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 17 07:59:30 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZFygE-0003Q3-18 for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Jul 2015 07:59:30 +0200 Original-Received: from localhost ([::1]:42873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFygD-0007kd-Fk for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Jul 2015 01:59:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFyg0-0007kS-8P for help-gnu-emacs@gnu.org; Fri, 17 Jul 2015 01:59:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFyfw-0003UG-AO for help-gnu-emacs@gnu.org; Fri, 17 Jul 2015 01:59:16 -0400 Original-Received: from mail-pa0-x232.google.com ([2607:f8b0:400e:c03::232]:35430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFyfw-0003Ty-2n for help-gnu-emacs@gnu.org; Fri, 17 Jul 2015 01:59:12 -0400 Original-Received: by pactm7 with SMTP id tm7so55540359pac.2 for ; Thu, 16 Jul 2015 22:59:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:reply-to:user-agent:mime-version:newsgroups:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=fcJF+b0vVeHctfasMh5R7eMkkxSleaXVoO/MazC9C9g=; b=ZvxZF2/T7apCrJ/7/HIkgM63UI07c613XUZ1wXvVxVETfUH+UvkhjB16LgDs7jcDry b24+n3mm/jdHHS9zlPnDxZSgoXX/Cjgovl4kbQXmv/tgyCf201AWhNYEEpTBSOuO6l0U 2Rp5jex4jPOFT8F77z4i7Hlaud5Ybg4PRyzSCgZVbJuJ5vQKdB9mgZIgPNQ8g9Yp5YQB IZPm7Ohr9OvF34MFqrDs1XLI1mlE2yUe70JpKRbqYmUkiHio26PJEgrnfdA+HXlDCcho O/UJzD77KXF1FkU53ClSHuO0jY3xJy6wszd4RAI5R725ll0ruL2KawYG+ViZvxI+G4yM dy5g== X-Received: by 10.66.62.229 with SMTP id b5mr25596913pas.81.1437112751137; Thu, 16 Jul 2015 22:59:11 -0700 (PDT) Original-Received: from [192.168.43.83] ([106.216.162.24]) by smtp.gmail.com with ESMTPSA id d7sm9839614pbu.41.2015.07.16.22.59.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Jul 2015 22:59:10 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.3.0 Original-Newsgroups: gmane.emacs.help In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::232 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105773 Archived-At: On Friday 17 July 2015 09:48 AM, Yaron Cohen-Tal wrote: > plz give me the ELisp code to make "ctrl+TAB" (without numeric > argument) insert exactly 4 spaces For indentation C-u 4 C-x TAB (which is same as C-4 C-x TAB) For de-indentation C-u - 4 C-x TAB (Note the minus prefix) ---------------------------------------------------------------- One another way to indent or de-indent is via rectangle editing. For indentation C-x r o For de-indentation C-x r k