From: Josh <jnfo-d@grauman.com>
To: emacs-orgmode@gnu.org
Subject: Binding literal tab to C-Tab
Date: Fri, 6 Mar 2020 00:12:30 -0800 (PST) [thread overview]
Message-ID: <alpine.LRH.2.21.2003060007300.11712@colo.shuman.org> (raw)
Hi all,
I have a need to insert literal tab characters into my org-mode files
frequently. I would like to bind a key to insert literal tabs (ASCII 9). I
thought Control-TAB would be a good option. So I inserted the following
lines into my .emacs file. It works when in normal emacs, but not in
org-mode. Is there a way to get this to work in org-mode? If this is a bad
key combination for org-mode, I'm ok switching to another key combo.
(defun my-insert-tab-char ()
"Insert a tab char. (ASCII 9, \t)"
(interactive)
(insert "\t"))
(global-set-key (kbd "C-<tab>") 'my-insert-tab-char)
Thanks!
Josh
next reply other threads:[~2020-03-06 8:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-06 8:12 Josh [this message]
2020-03-06 8:38 ` Binding literal tab to C-Tab Marco Wahl
2020-03-06 8:53 ` Joost Kremers
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=alpine.LRH.2.21.2003060007300.11712@colo.shuman.org \
--to=jnfo-d@grauman.com \
--cc=emacs-orgmode@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.