forked from haxney/smart-tab
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set the keybinding globally rather than in a minor mode.
This allows org-mode's `org-cycle' command to fall-back to `smart-tab' if it decides not to do any "org-mode-y" functions. Rather than have `smart-tab' try to deal with what it should do if it is called within a the minibuffer, prevent `smart-tab-mode' from starting in a minibuffer. This is a better way of organizing things, since if a major or minor mode wants to override the function of tab, then it should have priority over `smart-tab'. If that mode wants to provide a fallback (like org-mode does if it cannot cycle at the current point), it can use `global-key-binding' to call `smart-tab'. Signed-off-by: Dan Hackney <chrono325@gmail.com>
- Loading branch information
Dan Hackney
committed
May 27, 2009
1 parent
25ff08e
commit fc84764
Showing
1 changed file
with
30 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters