racket scheme geiser path not found - emacs

I followed the directions in the other questions about this problem but it does not seem to solve mine. So this is a duplicate only because the other answers do not work.
.eamcs scheme part looks like this:
(setq geiser-racket-binary "/Applications/Racket\ v6.2/bin/racket")
This is literally where the binary is on my system.
/Applications/Emacs.app/Contents/MacOS/Emacs-x86_64-10_9: /Applications/Racketv6.2/bin/racket: No such file or directory
both of these work fine in the terminal:
alias racket='/Applications/Racket\ v6.2/bin/racket'
alias raco='/Applications/Racket\ v6.2/bin/raco'
when i paste the path from my bash file and the run-geiser I get:
/Applications/Emacs.app/Contents/MacOS/Emacs-x86_64-10_9: /Applications/Racketv6.2/bin/racket: No such file or directory
but it literally exists because I can racket and raco inside the terminal.
Whats wrong here?

Renaming the file from Racket v6.2 to Racket solved my issue. OSX does not like spaces apparently.

Related

How to set executable path for a package on a configuration file on Emacs?

I want to use "ediprolog" package on Emacs. I followed installation and usage instruction here https://www.metalevel.at/ediprolog/ and he says:
The two most important configuration options are:
ediprolog-system, either scryer (default) or swi
ediprolog-program, the path of the Prolog executable.
So I tried C-X , customize-group , ediprolog and checked the configuration file. The files looks like this:
To be honest I have no idea how, where can I edit to add the prolog executable path ~/.cargo/bin/scryer-prolog. In addition, Emacs says You can't edit this part of the Custom buffer when I tried to type something on the file.
And as I can expected, when I run ediprolog-dwim, "view-echo" says ediprolog-run-prolog: No prompt from: scryer-prolog, probably because I don't set the path on a configuration file.
I'm noob to Emacs and the package also, sorry about that, but I'm really struggling to achieve this step. Your comments must be really helpful for me. Thanks.
Try adding the path to the exec-path variable in emacs: when emacs forks off a subshell, this variable is added to the PATH that is passed to the subshell:
(add-to-list 'exec-path (expand-file-name (substitute-in-file-name "$HOME/.cargo/bin")))

Emacs: using geiser and Racket

My .emacs file contains this line of code:
(setq geiser-racket-binary "C:/Program Files/Racket/Racket.exe")
My steps:
M+x run-geiser
Select racket
I get errors, "Searching for program: No such file or directory, Racket.exe"
Getting this to work has been a hassle and, maybe at this point, I am just missing something ridiculously easy, but I am just not seeing it.
Picture of my error messages and file path
I am using a PC.
Without getting a chance to look at your PC and see if you if you actually have Racket installed at that location, I suspect the problem is that you are using forward slashes (/) rather than back slashes (\) in your path. Try changing the line to:
(setq geiser-racket-binary "C:\\Program Files\\Racket\\Racket.exe")
Another solution would be to use racket-mode to edit your files rather than Geiser. It seems to do a better job at editing Racket files in Emacs.

Elpy and pylint: where should a pylintrc file be placed in order to customize pylint for Emacs?

I would like to remove the 80 characters per line limit when pylint is checking files in Emacs (I am using the Elpy package for Emacs). I am on Debian Wheezy, and I'm using the backported Emacs24.
I checked the docs out here regarding the pylintrc hierarchy: http://docs.pylint.org/run.html#command-line-options, and tried placing a pylintrc and a .pylintrc file in my working directory with no luck. I also tried putting a .pylintrc in my home directory, again with no effect.
I suppose the question might be asked, "what is my working directory when I call pylint from inside Emacs?". I don't have a good answer to that question...
Where should the pylint configuration file be placed? Should it be .pylintrc or pylintrc?
create file:
~/.flake8rc
[flake8] ignore = E501
#max-line-length = 160
AFAIK emacs flymake is using flake8 by default (?)
Try putting it in:
~/.config/pylintrc
If the ~/.config directory doesn't exist, create it. If that doesn't work try:
~/.pylintrc
You can place the .pylintrc wherever you like and then tell Emacs what to use with...
(add-hook 'python-mode-hook
(lambda ()
(setq flycheck-python-pylint-executable "~/.local/bin/pylint")
(setq flycheck-pylintrc "~/.emacs.d/settings/.pylintrc")))
I found this answer on the Emacs Stackexchange flycheck cannot find module for pylint and on my system ~/.emacs.d/settings/.pylintrc is a symlink to the rc file from work repository.

Emacs, anything and the Everything search tool under Windows 7

I am struggling to get Everything working with anything in Emacs 24.3.1 on Windows 7. Ultimately I want to use anything-locate to browse code directories and subdirectories, as recommended in answers to this question. I did once, briefly, seem to have anything-locate working but I changed something and cannot get it back.
When I enter M-x anything-locate (or, using helm, M-x helm-locate) I get a pattern: prompt but when I enter a search term I get an error message like this:
Locate
'es' is not recognized as an internal or external command,
operable program or batch file.
I assume but do not know for sure that this is related to es.exe which is the command line version of Everything. In my init file I have this:
(add-to-list 'load-path "~/.emacs.d/.emacs.d/elpa/everything")
(setq everything-ffap-integration nil)
(setq everything-cmd "~/.emacs.d/.emacs.d/elpa/everything/es.exe")
(require 'everything)
...and I have edited everything.el so that the
(defcustom everything-cmd "c:/Programme/Everything/es.exe" "Path to es.exe."
line now reads:
(defcustom everything-cmd "~/.emacs.d/.emacs.d/elpa/everything/es.exe" "Path to es.exe."
(EDIT Please note that despite the "~/" convention used above, in reality the paths are fully qualified with c:/blah/blah/blah/.emacs.d/)
I expected this to allow Emacs to find es.exe. And yet it still throws the error message. Any thoughts on how to fix this?
I know this is old, but I found this question when I ran into the same problem with helm, so it might be useful.
The problem was a conflict between how emacs specifies PATH, and how windows does it (similar to juanleon's suggestion).
The solution was to remove all forms that modified the path in emacs, and instead just add es.exe to the windows path.
es.exe is an extra download at the bottom of the voidtools download page, below the old versions, took me a while to find.
It is possible that windows shell (whatever it is) does not know how to expand "~/" (even if emacs does understand it).
A very quick test would be to copy the es.exe in "c:\es.exe" and then repeat the test with the proper change in the configuration of everything-cmd; if it works then just use the whole path.

Setting Racket Geiser Emacs Path

I'm trying to get Geiser's REPL to work in Emacs, but it doesn't seem to be able to find Racket.
racket is on my path, but anytime I type
run-geiser
followed by
racket
it complains:
Unable to start REPL: Searching for program: no such file or directory, racket
I read in the Geiser docs that I may have to manually tell Geiser where to find racket, but I can't tell where to configure this property of Geiser.
Thanks for your help.
Ok, so I added:
(setq geiser-racket-binary "/home/user/racket/bin/racket")
to my .emacs file after loading geiser.el.
I was expecting a configuration file somewhere to set this.
Thanks.
I know this is an old question, but for future people having a hard time getting it to find the Racket executable despite it being in your path, you can simply use the executable-find function.
This searches your path and returns the absolute path to the executable, which is what the geiser-racket-binary function wants. So this is an alternative to explicitly setting the absolute path:
(setq geiser-racket-binary (executable-find "Racket"))
In Windows, adding the location of the Racket executable to the "path" environment variable which is part of Windows will allow Geiser/Emacs to find the Racket Executable.