[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: tab character
From: |
Buchs, Kevin |
Subject: |
RE: tab character |
Date: |
Thu, 27 Oct 2011 17:27:59 -0500 |
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
- tab character, Rustom Mody, 2011/10/27
- RE: tab character,
Buchs, Kevin <=