From: Dan Nicolaescu <dann@ics.uci.edu>
To: Sebastian Rose <sebastian_rose@gmx.de>
Cc: emacs help <help-gnu-emacs@gnu.org>,
Lennart Borgman <lennart.borgman@gmail.com>,
harven <harven@free.fr>, Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: auto-indent in emacs
Date: Mon, 30 Nov 2009 09:26:00 -0800 (PST) [thread overview]
Message-ID: <200911301726.nAUHQ0nf014925@godzilla.ics.uci.edu> (raw)
In-Reply-To: <87eingm00k.fsf@gmx.de> (Sebastian Rose's message of "Mon, 30 Nov 2009 17:48:43 +0100")
Sebastian Rose <sebastian_rose@gmx.de> writes:
> Lennart Borgman <lennart.borgman@gmail.com> writes:
>
> > On Mon, Nov 30, 2009 at 4:26 PM, harven <harven@free.fr> wrote:
> >> Kenneth Brun Nielsen <kenneth.brun.nielsen@googlemail.com> writes:
> >>
> >>> I want to auto-indent a section (actually a whole file) in Emacs.
> >>>
> >>> I googled, that the shortcut C-M-\ ("CTRL+ALT+backspace") does the
> >>> job, but since I have a danish keyboard, where "backspace" requires me
> >>> to push the META-button "Alt Gr", it seems I'm not able to push this
> >>> combination.
> >>>
> >>> Any suggestions for another way to auto-indent?
>
>
> C-x h M-x indent-region RET
>
> I have bound `indent-region' to <f5>.
>
>
> >>> Best regards,
> >>> Kenneth
> >>
> >> C-M-\ runs the command indent-region (check it by typing C-h k C-M-\).
> >> So bind that command to another shortcut. For example, to bind it to C-c i
> >> put the following line in your .emacs
> >>
> >> (global-set-key (kbd "C-c i") 'indent-region)
> >
> >
> > Please see also the page http://www.emacswiki.org/emacs/AltGrKey for
> > how to type C-M-\.
>
>
> All those commands are unusable anyway for they're to difficult to type.
> But four of those come with easier to type alternatives, which are not
> mentioned there. Why?
>
> C-M-@ => C-M-SPC
> C-@ => C-SPC
> C-x C-@ => C-x C-SPC
> C-x r C-@ => C-x r SPC
>
>
> Only backslash commands might be problem. They are not on none of my
> (German) keyboards. I guess it's a problem of the underlying system
> (Windows I guess). How about filing a bug report there?
>
> Those commands are:
>
> `indent-region' has to be rebound (<f5> here).
Why?
TAB does `indent-region' just fine
> `set-input-method'
> `abort-recursive-edit'
>
>
>
>
> I think http://www.emacswiki.org/emacs/AltGrKey is obsolete and should
> be fixed.
>
>
>
> Sebastian
next prev parent reply other threads:[~2009-11-30 17:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <6bd43112-0ffd-482a-be72-0cbb579ed1b8@o13g2000vbl.googlegroups.com>
[not found] ` <87tywc9gpi.fsf@ergodik.univ-brest.fr>
2009-11-30 15:58 ` auto-indent in emacs Lennart Borgman
2009-11-30 16:48 ` Sebastian Rose
2009-11-30 17:06 ` Lennart Borgman
2009-11-30 18:11 ` Lennart Borgman
2009-11-30 19:22 ` Lennart Borgman
2009-11-30 21:05 ` Sebastian Rose
2009-11-30 17:26 ` Dan Nicolaescu [this message]
2009-11-30 19:20 ` Davis Herring
2009-11-30 19:23 ` Dan Nicolaescu
2009-11-30 19:39 ` Davis Herring
2009-11-30 19:44 ` Lennart Borgman
2009-11-30 20:08 ` Dan Nicolaescu
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200911301726.nAUHQ0nf014925@godzilla.ics.uci.edu \
--to=dann@ics.uci.edu \
--cc=emacs-devel@gnu.org \
--cc=harven@free.fr \
--cc=help-gnu-emacs@gnu.org \
--cc=lennart.borgman@gmail.com \
--cc=sebastian_rose@gmx.de \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).