eshell

Why do I get syntax error before: '{'?

故事扮演 提交于 2020-01-14 13:55:43
问题 While playing with Erlang getting started section I have met bizarre syntax error on trivial use case (simple map initialization). Are there any suggestion why does that happen? 1> #{ "key" => 42}. 1: syntax error before: '{' Details: Erlang R16B03 (erts-5.10.4), Eshell V5.10.4. 回答1: Because maps were introduced in Erlang 17. You have to upgrade your installation or do not use maps. 来源: https://stackoverflow.com/questions/31589190/why-do-i-get-syntax-error-before

Using RVM in eshell of Emacs

早过忘川 提交于 2020-01-12 07:38:07
问题 Using RVM in eshell of emacs, I am not able to set the ruby version. Why? Environment : Ubuntu 9.10 /media/Work/rubyworkspace $ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux] /media/Work/rubyworkspace $ rvm use 1.9.2 Using /usr/local/rvm/gems/ruby-1.9.2-p180 /media/Work/rubyworkspace $ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux] 回答1: As far as I can tell, RVM relies on the shell being a "regular" UNIX shell. Selection of the correct interpreter etc. is done using

Node.js prompt '>' can not show in eshell

拈花ヽ惹草 提交于 2019-12-30 04:54:26
问题 I want to run Node.js in eshell, but the prompt does not right: So, how can I fix this? 回答1: Try running node in eshell with NODE_NO_READLINE enabled. For example, you could add an alias to eshell by running this command in eshell: alias node 'NODE_NO_READLINE=1 node' 回答2: An alternative is to add this to your .emacs: (setenv "NODE_NO_READLINE" "1") The benefit of this approach is that it will also work for other invocations of Node programs that you run directly. 来源: https://stackoverflow

Compiling Programs from Within Emacs?

拟墨画扇 提交于 2019-12-07 17:31:29
问题 What is the best way to compile programs inside emacs? I am currently opening a separate buffer with C-x 3 and running eshell inside it using M-x eshell then invoking either make or clang directly; most of the time I do have a Makefile set up. Is there any advantage with running the compilation process using M-x compile vs running make inside eshell? Any other ways to do it and what are the advantages/disadvantages of those? 回答1: The easiest way to do this is to use the Emacs built-in compile

Compiling Programs from Within Emacs?

回眸只為那壹抹淺笑 提交于 2019-12-06 02:33:32
What is the best way to compile programs inside emacs? I am currently opening a separate buffer with C-x 3 and running eshell inside it using M-x eshell then invoking either make or clang directly; most of the time I do have a Makefile set up. Is there any advantage with running the compilation process using M-x compile vs running make inside eshell? Any other ways to do it and what are the advantages/disadvantages of those? The easiest way to do this is to use the Emacs built-in compile command. M-x compile should do you fine. You can then edit the command that will be run (by default make -k

What setup file does eshell (elisp shell) read when it starts? How eshell sets its PATH?

偶尔善良 提交于 2019-12-05 17:44:35
问题 With emacs/eshell, the "echo $PATH" shows different paths than that of $PATH environment variable. And I also checked that eshell doesn't read .bashrc or .profile, and I think that's the reason why the path is different. What setup file does eshell read when it starts? How eshell sets its PATH? How to make the eshell's PATH the same as the environment variable's PATH? ADDED As Jérôme Radix pointed out, the PATH depends on how I start the Aquamcs. When I click the button to start Aquamacs, it

Using RVM in eshell of Emacs

扶醉桌前 提交于 2019-12-03 12:57:20
Using RVM in eshell of emacs, I am not able to set the ruby version. Why? Environment : Ubuntu 9.10 /media/Work/rubyworkspace $ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux] /media/Work/rubyworkspace $ rvm use 1.9.2 Using /usr/local/rvm/gems/ruby-1.9.2-p180 /media/Work/rubyworkspace $ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux] As far as I can tell, RVM relies on the shell being a "regular" UNIX shell. Selection of the correct interpreter etc. is done using shell variables and these don't apply to eshell which has it's own way of configuring stuff. One solution is

Node.js prompt '>' can not show in eshell

 ̄綄美尐妖づ 提交于 2019-11-30 14:46:47
I want to run Node.js in eshell, but the prompt does not right: So, how can I fix this? Try running node in eshell with NODE_NO_READLINE enabled. For example, you could add an alias to eshell by running this command in eshell: alias node 'NODE_NO_READLINE=1 node' An alternative is to add this to your .emacs: (setenv "NODE_NO_READLINE" "1") The benefit of this approach is that it will also work for other invocations of Node programs that you run directly. 来源: https://stackoverflow.com/questions/9390770/node-js-prompt-can-not-show-in-eshell