How do you run iex from Emacs?

久未见 提交于 2019-12-12 20:53:20

问题


I keep on getting this warning when I run iex using elixir-mode-iex from Emacs:

Warning: could not run smart terminal, falling back to dumb one

I think that this just means that I don't get tab completion, which I'm fine with. But I'd like a smart terminal if it's possible with elixir-mode in Emacs.


回答1:


elixir-mode-iex uses the comint-mode major mode to interactive with iex. That also means that it's acting just like a dumb terminal (doesn't have the ability to process special escape sequences etc see here).

As a workaround you just could use term which sends any key press directly to the subprocess itself. You could write a function like the following:

(defun my-elixir-iex ()
  (interactive)
  (term "iex"))

I'm working on an iex Alchemist.el integration, which brings functionality like Inf-Ruby has. But until it's done try to just use iex via term

Cheers

Samuel




回答2:


It looks like that warning occurs when IEX can't find tty support. You can enable tty mode in emacs by invoking it with -nw.



来源:https://stackoverflow.com/questions/17756855/how-do-you-run-iex-from-emacs

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!