all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: gniuxiao <gniuxiao.mailinglist@gmail.com>
Subject: How to separate key bindings of TAB and C-i?
Date: Wed, 8 Nov 2006 13:07:34 +0800	[thread overview]
Message-ID: <3dd9a95e0611072107m1c8e9123ga85ef8a61ac77dcf@mail.gmail.com> (raw)

I want to insert a tab when type TAB and indent current line when type
C-i, so I wrote the following codes:

(defun my-insert-tab()
  (interactive)
  (insert "	"))

(global-set-key (kbd "TAB") 'my-insert-tab)
(global-set-key (kbd "C-i") 'lisp-indent-line)

but both TAB and C-i invoke lisp-indent-line, then I changed the
setting sequence to:

(global-set-key (kbd "C-i") 'lisp-indent-line)
(global-set-key (kbd "TAB") 'my-insert-tab)

now both TAB and C-i invoke my-insert-tab.

I think TAB and C-i are internally stick to each other, and I wanna
know how to separate them, thanks ;-)

             reply	other threads:[~2006-11-08  5:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-08  5:07 gniuxiao [this message]
2006-11-08 21:04 ` How to separate key bindings of TAB and C-i? Kevin Rodgers

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=3dd9a95e0611072107m1c8e9123ga85ef8a61ac77dcf@mail.gmail.com \
    --to=gniuxiao.mailinglist@gmail.com \
    /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.