emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emacs-wiki-discuss] Re: Prevent the TAB & SHIFT-TAB Keybinding?


From: Raymond Zeitler
Subject: [emacs-wiki-discuss] Re: Prevent the TAB & SHIFT-TAB Keybinding?
Date: Mon, 16 May 2005 14:00:11 -0400

Thanks.  That almost seems to work, especially if I make
emacs-wiki-mode-map unquoted.  I'm all set, now.

Just for the record, I added this to my .emacs:

(add-hook 'emacs-wiki-mode-hook 
  #'(lambda () 
     (define-key emacs-wiki-mode-map [tab] 'indent-relative)
     (define-key emacs-wiki-mode-map [(control ?i)] 'indent-relative)))
(add-hook 'planner-mode-hook 
  #'(lambda () 
     (define-key planner-mode-map [tab] 'indent-relative)
     (define-key planner-mode-map [(control ?i)] 'indent-relative)))

Note that I'm attempting to redefine just tab for now, ignoring S-tab.

One day maybe the redundant definition of tab (and C-i) to
emacs-wiki-next-reference that appears in planner-mode-map can be
removed from the default settings?  I can't seem to find where the
definition occurs, but it's not in planner.el.  I'm sure Sacha knows.
:)

All the best!

--
Raymond Zeitler <address@hidden>
-----Original Message-----
Date: Fri, 13 May 2005 21:57:31 +0100
From: Jim Ottaway <address@hidden>
Subject: Re: [emacs-wiki-discuss] Prevent the TAB & SHIFT-TAB
        Keybinding?
To: address@hidden
Message-ID: <address@hidden>
Content-Type: text/plain; charset=us-ascii

>>>>> Raymond Zeitler <address@hidden> writes:

> I prefer that Planner / Emacs-Wiki not bind TAB and SHIFT-TAB to next
> reference and previous reference, respectively.  Is there a way in my
> .emacs to prevent the keybinding from taking place?  Or do I have to
> keep commenting out those keybinding statements every time I upgrade?

How about something like:

(add-hook 'emacs-wiki-mode-hook
  #'(lambda ()
     (define-key 'emacs-wiki-mode-map [tab] 'indent-for-tab-command)
     (define-key 'emacs-wiki-mode-map [S-tab]
'whatever-you-want-shift-tab-to-do)))

?

[completely untested]






reply via email to

[Prev in Thread] Current Thread [Next in Thread]