Re: [racket-users] Re: How do I launch a REPL in the context of a file?

2018-11-30 Thread Habib Alamin
f (current-command-line-arguments) 0)) > > and then: > > $ racket -i -f enter.rktl my-file.rkt > > will do what you wanted. > > Sam > > > >> On Fri, Nov 30, 2018 at 4:36 AM Habib Alamin wrote: >> >> I found a solution: >> >> nnor

[racket-users] Re: How do I launch a REPL in the context of a file?

2018-11-30 Thread Habib Alamin
you're a neat freak, you can do: nnoremap r :w \| !racket -e "$(grep -Ev '(\#lang)\|(^$)' % \| tr '\n' ' ')" -i On Friday, 30 November 2018 01:36:11 UTC, Habib Alamin wrote: > > Hi, > > I'm trying to set up a keybinding in my editor

[racket-users] How do I launch a REPL in the context of a file?

2018-11-29 Thread Habib Alamin
Hi, I'm trying to set up a keybinding in my editor to enter the namespace of my current file in a REPL, similar to how Dr Racket's Run button works. I can do a racket -e '(println "Hello!") -i and it loads the REPL after printing Hello. A racket -e '(define a "a") -i also works, in that I'm abl