From: Andreas Politz <politza@fh-trier.de>
To: help-gnu-emacs@gnu.org
Subject: Re: turning off all indentation
Date: Wed, 12 May 2010 18:44:33 +0200 [thread overview]
Message-ID: <87632tf4su.fsf@fh-trier.de> (raw)
In-Reply-To: d337ac07-d622-400f-9520-ac22ce0e4f86@k29g2000yqh.googlegroups.com
Lynn Newton <lynn.newton@gmail.com> writes:
>
> I want a trivial way to disable autoindenting for
> all languages and in all modes. I want it to work
> in all versions of Emacs and I don't want it stop
> working.
>
To summarize, the following are _not_ solutions :
- A piece of code that does disable indentation in all modes and all
versions, but foo-mode in Emacs 22.3.174.
- A piece of code that always works, ever, but contains a very short,
but incomprehensible algorithm.
- A piece of code that works in all modes he uses. But not in some c++
mode, some Indian teenager wrote in the '90, which of course he never
published. (Because his girl-friend had left him at the time.)
>
> Suggestions? Thank you.
(add-hook 'after-change-major-mode-hook
(lambda nil
(local-set-key [return] nil)
(local-set-key [tab] nil)))
I don't know which version this hook was introduced.
-ap
next parent reply other threads:[~2010-05-12 16:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <d337ac07-d622-400f-9520-ac22ce0e4f86@k29g2000yqh.googlegroups.com>
2010-05-12 16:44 ` Andreas Politz [this message]
[not found] ` <81679436-5d3c-429c-bc39-7121f452d51b@d39g2000yqa.googlegroups.com>
2010-05-12 19:11 ` turning off all indentation Alan Mackenzie
2010-05-12 19:15 ` Lowell Gilbert
2010-05-12 19:59 ` Andreas Politz
[not found] ` <87pr1145gl.fsf@lola.goethe.zz>
[not found] ` <a08c7e68-3949-41de-bdbf-5d4c81e377f9@d27g2000yqc.googlegroups.com>
2010-05-13 0:31 ` Tim X
2010-05-13 14:53 ` Scott Frazer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87632tf4su.fsf@fh-trier.de \
--to=politza@fh-trier.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.