55340

How do you run iex from Emacs?

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.

Answer1:

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

Answer2:

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.

Recommend

  • CakePHP 3.x search form with 11 different models
  • How to use Vue Router in Vue 2
  • return value from zmq socket
  • How to rename file with a sequence that restarts if certain matches exist
  • Change font size to fit text inside button entirely?
  • Rectangular Nesting - Convergence to optimal solution using Simulated Annealing
  • How can I test the validity of a ReferenceProperty in Appengine?
  • Does Angular assign itself to `window.angular` globally, when loaded as CommonJS module?
  • PHP function error and success pattern
  • Getting wrong values for other columns when I select MAX(updated_date)
  • Eclipse code fomatting
  • Insert Path of a file with \\\\ in mysql using java
  • Thread Synchronization with IntentService
  • pandas parse csv with left and right quote chars
  • preg_replace
  • How do I put a semicolon in a value in python configparser?
  • Development workflow for server and client using Docker Compose?
  • Spring Integration debounce/deduplicate
  • SQL Server 2008 R2 - Islands and Gaps [closed]
  • How do I recognize a line break with a switch case that evaluates a char in Java?
  • How to add System.Windows dll to Visual Studio 2010 express?
  • C++ and JS RegEx equivalent of \\p{L}
  • How to debug Shell command after customization
  • “A GKScore must specify a leaderboard.”
  • Nested projects in multiproject visual studio templates
  • Emacs lua-mode issue: (void-function interactively-called-p)
  • Is there any way to call saveCurrentTurnWithMatchData without sending a push notification?
  • ZipList with Scalaz
  • Implement JwtBearer Authentication in NSwag SwaggerUi
  • Outlines on links in IE9 remains when focus is changed
  • hide missing dates from x-axis ggplot2
  • cygwin cannot exec 'git-add--interactive' permission denied
  • Does it make sense to call System.gc() and Thread.sleep() when working on Bitmaps?
  • azure media services - The request body is too large and exceeds the maximum permissible limit
  • How do I open a C file with a relative path?
  • Sony Xperia Z Tablet not found by adb
  • How to recover from a Spring Social ExpiredAuthorizationException
  • How can I estimate amount of memory left with calling System.gc()?
  • Hits per day in Google Big Query
  • How to push additional view controllers onto NavigationController but keep the TabBar?