@Glenn Hoetker:

First, create a file with rkt ending with the following content:

#lang s-exp framework/keybinding-lang
(text:get-completions/manuals false)
(keybinding "c:TAB" (λ (editor event) (send editor auto-complete))) ; i 
changed this to control+tab, its more convenient for me.
(keybinding "c:l" (λ (editor event) (send editor insert "λ")))

then, in Dr. Racket in the Menu: Edit -> Keybindings you can add this file.

@Robby Findler:
Thank you!
(text:get-completions/manuals false)
in my keymap file did it.
Now it takes a little bit longer to start (those 2-3 seconds), but that is 
expected by me.

Thank you very very much!


Am Mittwoch, 12. September 2018 10:11:12 UTC+2 schrieb Gregor Kopp:
>
> Hi!
> I like DrRacket very much, because it's hassle-free.
> I like fast startup times, that's why I disabled all tools in the 
> preferences, because at the moment I don't use them.
> Further more, it's easier for me to map "Complete Word" to the tabulator 
> key. I do not use the emacs keybindings.
> I have in the preferences, tab "Editing", subtab "General Editing" "Enable 
> keybindings in menus...." checked. It's more convenient for me.
>
> For that purpose I did a custom keybinding which I successfully enabled in 
> DrRacket:
>
> #lang s-exp framework/keybinding-lang
> (keybinding "TAB" (λ (editor event) (send editor auto-complete)))
> (keybinding "c:l" (λ (editor event) (send editor insert "λ")))
>
> That all works very well, DrRacket starts very fast, and editing is also 
> fast enough. The λ is also very helpful for me because I don't have an 
> english keyboard.
> There is only one thing I would like to change:
>
> If I invoke the auto-complete method, the first time I'm using it it takes 
> some time (2-3 seconds maybe?) until the complete suggestions are 
> appearing. After the first time using it its fast enough.
> I think it's loading on demand.
>
> Finally my question: Is there any way to tell DrRacket to load that 
> required data on startup?
>
> I know, why bother about it, but 2 seconds are 2 seconds.
>
> Thank you for your suggestions.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to