From: "Buchs, Kevin" <buchs.kevin@mayo.edu>
To: <help-gnu-emacs@gnu.org>
Subject: RE: tab character
Date: Thu, 27 Oct 2011 17:27:59 -0500 [thread overview]
Message-ID: <F326B9A37B353A449FC7A09B36835F82D91989@MACE.sppdg.ad> (raw)
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 | Senior Engineer | Department of Physiology and Biomedical Engineering - SPPDG
507-538-5459 | buchs.kevin@mayo.edu | http://www.mayo.edu/sppdg
Mayo Clinic | 200 1st St. SW | Rochester, MN 55905
next reply other threads:[~2011-10-27 22:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-27 22:27 Buchs, Kevin [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-10-27 13:45 tab character Rustom Mody
2011-10-27 14:31 ` Ludwig, Mark
2011-10-27 15:05 ` Rustom Mody
2011-10-27 15:13 ` Ludwig, Mark
2011-10-27 20:23 ` Andreas Röhler
[not found] ` <mailman.1178.1319727924.15868.help-gnu-emacs@gnu.org>
2011-10-27 15:18 ` Pascal J. Bourguignon
[not found] <mailman.1037819061.24117.help-gnu-emacs@gnu.org>
2002-11-22 21:56 ` TAB character Benjamin Rutt
2002-11-20 19:03 Stirling Olson
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=F326B9A37B353A449FC7A09B36835F82D91989@MACE.sppdg.ad \
--to=buchs.kevin@mayo.edu \
--cc=help-gnu-emacs@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.