emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Binding literal tab to C-Tab
@ 2020-03-06  8:12 Josh
  2020-03-06  8:38 ` Marco Wahl
  2020-03-06  8:53 ` Joost Kremers
  0 siblings, 2 replies; 3+ messages in thread
From: Josh @ 2020-03-06  8:12 UTC (permalink / raw)
  To: emacs-orgmode

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

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

end of thread, other threads:[~2020-03-06  8:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-06  8:12 Binding literal tab to C-Tab Josh
2020-03-06  8:38 ` Marco Wahl
2020-03-06  8:53 ` Joost Kremers

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).