From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josh Subject: Binding literal tab to C-Tab Date: Fri, 6 Mar 2020 00:12:30 -0800 (PST) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38134) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jA85y-0006eR-84 for emacs-orgmode@gnu.org; Fri, 06 Mar 2020 03:12:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jA85x-00084u-A0 for emacs-orgmode@gnu.org; Fri, 06 Mar 2020 03:12:34 -0500 Received: from colo.shuman.org ([204.238.213.178]:56072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jA85x-000806-4Y for emacs-orgmode@gnu.org; Fri, 06 Mar 2020 03:12:33 -0500 Received: from localhost (localhost [127.0.0.1]) by colo.shuman.org (Postfix) with ESMTP id 11A996030618 for ; Fri, 6 Mar 2020 00:12:30 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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-") 'my-insert-tab-char) Thanks! Josh