From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yaron Cohen-Tal Newsgroups: gmane.emacs.help Subject: Re: While editing a CMake file, how to turn off smart indentation? Date: Fri, 17 Jul 2015 07:18:40 +0300 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1437106743 12098 80.91.229.3 (17 Jul 2015 04:19:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jul 2015 04:19:03 +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 Jul 17 06:19:02 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 1ZFx6y-00006q-K0 for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Jul 2015 06:19:00 +0200 Original-Received: from localhost ([::1]:42730 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFx6x-0008Do-Rx for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Jul 2015 00:18:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35822) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFx6g-000803-4Y for help-gnu-emacs@gnu.org; Fri, 17 Jul 2015 00:18:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFx6f-0000o6-BH for help-gnu-emacs@gnu.org; Fri, 17 Jul 2015 00:18:42 -0400 Original-Received: from mail-vn0-x229.google.com ([2607:f8b0:400c:c0f::229]:33116) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFx6f-0000o2-6a for help-gnu-emacs@gnu.org; Fri, 17 Jul 2015 00:18:41 -0400 Original-Received: by vnbf7 with SMTP id f7so10210551vnb.0 for ; Thu, 16 Jul 2015 21:18:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=7LEGYj5GFaU5Zsnyxu1nA2QhjtNKdpGKnO41wamhcqU=; b=c3smMpK0tjmYlR3gmJTY7i/5Y0iZQnvsTuyZNG1F0Cem1QR7nR4pbyh7ixybMe0row ipZ6lcEe3sqy/+p2zoa58rnc49E0ONnDpGjvBILck+eWAXMRsUGrlE+Tszo6Se+t9Vu9 0djsRF3v/e+LHoWFKIN7vtZKzAV238XHqHXfKAWcT/rmG9pQ8i7wOt6Pi0SkkELJPov4 ZT3WSPujQ0J262J2maiGCaK5JPYt5+ehkxgRMnsqVZw23LEx1x4WgJAntWk4bKgXnUgo GYg5yZDykFpDwk4fjmlqSdWG4lqSZDSMg+JhaNpH/88SndGV6ZdPQ33x7rJUdl3N3wy8 1QvQ== X-Received: by 10.52.117.145 with SMTP id ke17mr14255740vdb.62.1437106720772; Thu, 16 Jul 2015 21:18:40 -0700 (PDT) Original-Received: by 10.31.70.193 with HTTP; Thu, 16 Jul 2015 21:18:40 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c0f::229 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:105770 Archived-At: CMake files come with extension ".cmake" or with name "CMakeLists.txt". My emacs seems to identify them correctly as CMAKE mode, and highlight them accordingly. Emanuel, let's say I borrow your idea. can u plz give me the ELisp code to make "ctrl+TAB" (without numeric argument) insert exactly 4 spaces, and make "shift+TAB" (without numeric argument) remove exactly 4 spaces (or any 4 characters)? Sorry but I'm not experienced with ELisp.