From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Buchs, Kevin" Newsgroups: gmane.emacs.help Subject: RE: tab character Date: Thu, 27 Oct 2011 17:27:59 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1319754494 24629 80.91.229.12 (27 Oct 2011 22:28:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2011 22:28:14 +0000 (UTC) To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 28 00:28:10 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RJYQj-00011S-TR for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Oct 2011 00:28:10 +0200 Original-Received: from localhost ([::1]:57803 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJYQj-0005b5-Av for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Oct 2011 18:28:09 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJYQf-0005ax-6j for help-gnu-emacs@gnu.org; Thu, 27 Oct 2011 18:28:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJYQd-00087s-Cm for help-gnu-emacs@gnu.org; Thu, 27 Oct 2011 18:28:05 -0400 Original-Received: from mail10.mayo.edu ([129.176.212.47]:65334) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJYQd-00087l-8k for help-gnu-emacs@gnu.org; Thu, 27 Oct 2011 18:28:03 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvAFAKPZqU6BsJ4A/2dsb2JhbABAA5pSkBOBcgEBAQQwWwEIIgYYB1cBBBMInUKWXYkEhWmCNGEEh1YwjAeKN4dG X-IronPort-AV: E=Sophos;i="4.69,415,1315198800"; d="scan'208";a="113720879" Original-Received: from roedlp005a.mayo.edu (HELO mail10.mayo.edu) ([129.176.158.0]) by ironport10.mayo.edu with ESMTP; 27 Oct 2011 17:28:01 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmwGAKPZqU6BsNQ1/2dsb2JhbABAA5pSjw6BBYFyAQEBBDBbAQgiBhgHVwEEEwidQpZdiQSFaYI0YQSHVjCMB4o3h0Y X-IronPort-AV: E=Sophos;i="4.69,415,1315198800"; d="scan'208";a="113720878" Original-Received: from mhro1a.mayo.edu ([129.176.212.53]) by ironport10.mayo.edu with ESMTP; 27 Oct 2011 17:28:00 -0500 Original-Received: from smtprelay.mayo.edu (smtprelay1.mayo.edu [192.168.48.10]) by mhro1a.mayo.edu with ESMTP id BT-MMP-3519834 for help-gnu-emacs@gnu.org; Thu, 27 Oct 2011 17:28:00 -0500 Original-Received: from MACE.mayo.edu (mace.mayo.edu [129.176.215.134]) by smtprelay.mayo.edu (8.12.11/8.12.11) with ESMTP id p9RMS0n0021275 for ; Thu, 27 Oct 2011 17:28:00 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: tab character Thread-Index: AcyU9iW7N1erh56WREi+R96fNKklyA== X-CFilter-Loop: Reflected X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 129.176.212.47 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82683 Archived-At: Whenever I want to insert a few literal tabs, I just escape it with C-q = Tab. If I want to have tabs every time in a particular file, I will turn = on this true-tab-mode I created: (defvar true-tab-mode-map (let ( (map (make-sparse-keymap)) ) ; sparse keymap copies the = existing one (define-key map "\t" 'self-insert-command) map) ; return the value of the let clause, which is map from this = line "Keymap for `true-tab-mode'.") (define-derived-mode true-tab-mode text-mode "text TrueTab" " Major mode based on text mode, just reassigns the TAB key to do an insertion of a tab. Key map: \\{true-tab-mode-map}") Kevin Buchs=A0=A0 |=A0=A0Senior Engineer | Department of Physiology = and Biomedical Engineering - SPPDG 507-538-5459=A0=A0|=A0=A0=A0buchs.kevin@mayo.edu | = =A0http://www.mayo.edu/sppdg Mayo Clinic=A0=A0|=A0=A0200 1st St. SW=A0 |=A0 Rochester, MN 55905=A0=20