From: Josh Cheek Date: 2011-11-12T09:08:05+09:00 Subject: Re: windows pry editor setup --0016364eff06e13dc704b17e6d52 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Nov 11, 2011 at 11:33 AM, Kevin wrote: > Does anyone know the correct way to configure Pry's editor variable on > Windows? I use Emacs so I took the wiki entry Pry.config.editor = proc { | > file, line| "emacsclient +#{line} #{file}" } > > However when I run the edit command the script is executed rather than > being opened in Emacs. Am I missing something? > I just gave that a try (I'm on Mac, though) and it worked for me. It also seems to be what the docs say to do ( https://github.com/pry/pry/wiki/Editor-integration#wiki-Set_editor) So, some things to look at is do you have the emacs server started? (On mine, at least, I needed to start a server) Is the emacsclient in your path? (ie does it work if you run it from the command line, outside of pry?) Are you invoking it with the edit-method command? ( https://github.com/pry/pry/wiki/Editor-integration#wiki-Edit_method) --0016364eff06e13dc704b17e6d52--