help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: While editing a CMake file, how to turn off smart indentation?


From: Vaidheeswaran C
Subject: Re: While editing a CMake file, how to turn off smart indentation?
Date: Fri, 17 Jul 2015 11:29:17 +0530
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.3.0

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]