如何从Emacs运行iex

如何从Emacs运行iex

本文介绍了如何从Emacs运行iex?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 警告:无法使用emxs中的elixir-mode-iex执行iex运行智能终端,回到愚蠢的一个

我认为这只是意味着我没有标签完成,我很好。但是我想要一个智能终端,如果在Emacs中可以使用elixir模式。

解决方案

elixir -mode-iex 使用 comint-mode 主要模式与 iex 交互。这也意味着它的行为就像一个哑终端(没有能力处理特殊的转义序列等等,见)。



作为一种解决方法,您只需使用术语即可发送任何按键直接到子进程本身。您可以编写如下功能:

 (defun my-elixir-iex()
(interactive)
(术语iex))

我正在开发一个 iex 集成,它带来了诸如 Inf-Ruby 有。但是直到完成之前,尝试仅使用 iex 通过术语



Cheers



Samuel


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.

解决方案

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

这篇关于如何从Emacs运行iex?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 22:39