+++ Santiago Vila [2014-10-07 12:46 +0200]:
> Package: jed
> Version: 1:0.99.19-3
> Tags: upstream
> 
> Hello Wookey.
> 
> As the Subject says, the "tab" key does not seem to work at all.
> 
> Ok, I didn't know and apparently this is a FAQ:
> 
> http://www.jedsoft.org/jed/faq.html#faq-2
> 
>  Many modes will set the TAB key to run an indent_line function. The
>  rationale for this is that many people feel that it is better to have
>  the editor determine how to indent a line in a context-sensitive way
>  rather than manually via TABS.
> 
>  If you really want the TAB key to insert TABs, then put the following
>  in your .jedrc file:
> 
>      public define global_mode_hook (hook_name)
>      {
>         local_setkey ("self_insert_cmd", "\t");
>      }
>      setkey ("self_insert_cmd", "\t");
> 
> Well, I was looking for a small editor with an emacs-like feel, and
> the TAB key works in emacs by default, so this "If you really want [...]"
> is pure nonsense to me. Of course I want the TAB key to insert TABs!

Well emacs TAB key is also context-sensitive is it not? jed's TAB key
works as I expect (and more or less the same as emacs) editing
makefiles, perl or C, but I agree that in plain text files it does
nothing useful by default.

You can always get real tabs by typing:
[`][`][TAB]  (i.e backquote key, backquote key, tab key)

Another small emacs like editor is zile (very small) and the TAB key
is just <TAB> by default, with no fancy alignment so just using that
might be easier, but it is more basic than jed :-)

Anyway, I take it you would prefer to see the above snippet in the
default jed config? Does that break the magic tabbing in other modes
(C, make, perl) so we have to choose? I'd like to keep the
mode-sensitive magic tabing _and_ have it put a plain tab in in plain
text mode as the defalt config. I don't actually know how to do that.

Wookey
-- 
Principal hats:  Linaro, Emdebian, Wookware, Balloonboard, ARM
http://wookware.org/


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to