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: While editing a CMake file, how to turn off smart indentation? Date: Thu, 16 Jul 2015 10:23:27 +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 1437060599 22583 80.91.229.3 (16 Jul 2015 15:29:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Jul 2015 15:29:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 16 17:29:59 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 1ZFl6l-00047J-5Y for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Jul 2015 17:29:59 +0200 Original-Received: from localhost ([::1]:40749 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFl6k-000179-KG for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Jul 2015 11:29:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFdVx-0006zM-OH for help-gnu-emacs@gnu.org; Thu, 16 Jul 2015 03:23:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFdVx-0003zf-1h for help-gnu-emacs@gnu.org; Thu, 16 Jul 2015 03:23:29 -0400 Original-Received: from mail-vn0-x233.google.com ([2607:f8b0:400c:c0f::233]:44178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFdVw-0003xh-U0 for help-gnu-emacs@gnu.org; Thu, 16 Jul 2015 03:23:28 -0400 Original-Received: by vnbg129 with SMTP id g129so7103496vnb.11 for ; Thu, 16 Jul 2015 00:23:27 -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=EPAgsXRGdlfnPHjGvValI90nNUUkuDBcJCjnyIzCoeY=; b=vV0bTGtroHD4+TmWk6m3Zk7ojGByUq3DFkGaT5DtBZPvzqVknJzD6Mh8lzFFKtTmxB CrgKKjnerJZp0A9Ziyxe9HbpM0HThNr7PVmma+OWPTWLYnPMDlBGRndpthcFGTe3nIPc MceDMISASukf1CZTM5XQm4LqD3dPh2vvtsEGTRKuZZtjMRc1Flr/MEymC7JPvoAYLEmF mWc6Gc+QOlHcMUkRaNLaMdYJ3JMFQDkUEsFS6TYsEEqwKv/u9xiNg6uZ0yPpXjp7HcBe mPt6fSsozEtD3lJx9XFkg70jeQuK5S7+KZRqfbJ3qiFP0ClVkcG5AEtVif0FRGcA1NiM 3t9A== X-Received: by 10.52.3.42 with SMTP id 10mr8930864vdz.10.1437031407199; Thu, 16 Jul 2015 00:23:27 -0700 (PDT) Original-Received: by 10.31.70.193 with HTTP; Thu, 16 Jul 2015 00:23:27 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c0f::233 X-Mailman-Approved-At: Thu, 16 Jul 2015 11:29:48 -0400 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:105763 Archived-At: Hi, I just want each line to get the same indentation as the previous line, and that TAB would indent 4 spaces. For C++ I managed it with: (setq-default indent-tabs-mode nil) (setq-default c-syntactic-indentation nil) (setq-default c-basic-offset 4) In my `.emacs`, but for CMake files Emacs just indents the lines automatically according to its own rules, and TAB has no effect at all. Thanx, Yaron