all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to binding key Ctrl-TAB to 'indent-relative
@ 2009-06-09  2:04 Edmond Halley
  2009-06-09  8:40 ` Peter Dyballa
  0 siblings, 1 reply; 3+ messages in thread
From: Edmond Halley @ 2009-06-09  2:04 UTC (permalink / raw
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 541 bytes --]

Hi, all

I am new to emacs. I want to bind key ctrl-tab to 'indent-relative, but I do
not know how.

I have tried the following codes, but all failed.
(local-set-key [?\C-\t] 'indent-relative)
(local-set-key [?\\C-\\t] 'indent-relative)
(local-set-key [C-TAB] 'indent-relative)
(local-set-key [\C-TAB] 'indent-relative)
(local-set-key [?\C-TAB] 'indent-relative)
(local-set-key "\C-TAB" 'indent-relative)
(local-set-key "\C-\t" 'indent-relative)

It is c++-mode, version23. Is this key sequence special not able to rebind?


Thanks!

Halley

[-- Attachment #2: Type: text/html, Size: 656 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to binding key Ctrl-TAB to 'indent-relative
  2009-06-09  2:04 How to binding key Ctrl-TAB to 'indent-relative Edmond Halley
@ 2009-06-09  8:40 ` Peter Dyballa
  2009-06-09 13:55   ` Edmond Halley
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Dyballa @ 2009-06-09  8:40 UTC (permalink / raw
  To: Edmond Halley; +Cc: help-gnu-emacs


Am 09.06.2009 um 04:04 schrieb Edmond Halley:

> (local-set-key [C-TAB] 'indent-relative)


This is close, you just need to write "tab" in lower-case letters.

Have you learned that you can "test" Elisp statements in the  
*scratch* buffer? You can also try them interactively in mini-buffer  
and upon success find this command with C-x Esc Esc (and then cursor  
up if necessary).

--
Greetings

   Pete

Specifications are for the weak and timid!







^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to binding key Ctrl-TAB to 'indent-relative
  2009-06-09  8:40 ` Peter Dyballa
@ 2009-06-09 13:55   ` Edmond Halley
  0 siblings, 0 replies; 3+ messages in thread
From: Edmond Halley @ 2009-06-09 13:55 UTC (permalink / raw
  To: Peter Dyballa; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 848 bytes --]

Thanks to Jeff and Pete!
Both method work well.

Usually I try some codes in *scratch* buffer by "C-x C-e". However, I come
to elisp just a few weeks, I know little about this language, and am often
obsessed with the backtrace.

It is very lucky to have a comprehensive references/docs/codes, and an
active mail-group.

2009/6/9 Peter Dyballa <Peter_Dyballa@web.de>

>
> Am 09.06.2009 um 04:04 schrieb Edmond Halley:
>
>  (local-set-key [C-TAB] 'indent-relative)
>>
>
>
> This is close, you just need to write "tab" in lower-case letters.
>
> Have you learned that you can "test" Elisp statements in the *scratch*
> buffer? You can also try them interactively in mini-buffer and upon success
> find this command with C-x Esc Esc (and then cursor up if necessary).
>
> --
> Greetings
>
>  Pete
>
> Specifications are for the weak and timid!
>
>
>
>

[-- Attachment #2: Type: text/html, Size: 1417 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-09 13:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-09  2:04 How to binding key Ctrl-TAB to 'indent-relative Edmond Halley
2009-06-09  8:40 ` Peter Dyballa
2009-06-09 13:55   ` Edmond Halley

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.