Code Monkey home page Code Monkey logo

Comments (14)

tonini avatar tonini commented on July 22, 2024

Thats because Alchemist use the comint library to implement a command
interpreter. We could realize a buffer clear function like @bbatsov showed
in this article http://emacsredux.com/blog/2015/01/18/clear-comint-buffers/

Leonardo Hahn [email protected] schrieb am So., 17. Mai 2015 21:34:

Inside the Alchemist-IEx buffer:

  • the command clear is accepted by the buffer, but it does not clear
    the screen. I am thinking that maybe it is an issue with shell or eshell?
    here using clear on shell or eshell does not work, but using inside term
    and ansi-term works fine.


Reply to this email directly or view it on GitHub
#76.

from alchemist.el.

bbatsov avatar bbatsov commented on July 22, 2024

That very same function will be in Emacs 25.1, btw.

from alchemist.el.

tonini avatar tonini commented on July 22, 2024

Thats great to hear, did you contribute that? :)

Bozhidar Batsov [email protected] schrieb am So., 17. Mai 2015
21:43:

That very same function will be in Emacs 25.1, btw.


Reply to this email directly or view it on GitHub
#76 (comment).

from alchemist.el.

bbatsov avatar bbatsov commented on July 22, 2024

Yep. :-)

On 17 May 2015 at 22:44, Samuel Tonini [email protected] wrote:

Thats great to hear, did you contribute that? :)

Bozhidar Batsov [email protected] schrieb am So., 17. Mai 2015
21:43:

That very same function will be in Emacs 25.1, btw.


Reply to this email directly or view it on GitHub
<#76 (comment)
.


Reply to this email directly or view it on GitHub
#76 (comment).

Best Regards,
Bozhidar Batsov

http://www.batsov.com

from alchemist.el.

tonini avatar tonini commented on July 22, 2024

Congrats :) I'm too afraid to try contribute to emacs, I heard nightmare
stories about it :P

Bozhidar Batsov [email protected] schrieb am So., 17. Mai 2015
21:55:

Yep. :-)

On 17 May 2015 at 22:44, Samuel Tonini [email protected] wrote:

Thats great to hear, did you contribute that? :)

Bozhidar Batsov [email protected] schrieb am So., 17. Mai 2015
21:43:

That very same function will be in Emacs 25.1, btw.


Reply to this email directly or view it on GitHub
<
#76 (comment)
.


Reply to this email directly or view it on GitHub
<#76 (comment)
.

Best Regards,
Bozhidar Batsov

http://www.batsov.com


Reply to this email directly or view it on GitHub
#76 (comment).

from alchemist.el.

leohahn avatar leohahn commented on July 22, 2024

That's nice, thanks for the tip.

from alchemist.el.

tonini avatar tonini commented on July 22, 2024

@leohahn do you want to implement that for alchemist-iex? :) Would be nice, otherwise I'll do it.

from alchemist.el.

leohahn avatar leohahn commented on July 22, 2024

@tonini If you are in no hurry I can try to do that. But it would maybe take some time because I have no experience in emacs lisp. But I would be glad to help.

from alchemist.el.

tonini avatar tonini commented on July 22, 2024

@leohahn Please go ahead :)

from alchemist.el.

leohahn avatar leohahn commented on July 22, 2024

@tonini from what I've seen, the function alchemist-iex-clear-buffer is already implemented, which is exactly the comint-clear-buffer. ^^

It just does not have a key binding attached to it.

from alchemist.el.

tonini avatar tonini commented on July 22, 2024

Oh! :-) maybe we should add the alchemist-mode in the iex buffdf to get all the other keybindings too

from alchemist.el.

leohahn avatar leohahn commented on July 22, 2024

Yeah, for me the mode is really nice right now with the clear-buffer command.
Maybe it would be nice to add a default key binding, something like "C-c a c" or something like it. I didn't do it because I feel that is kind of a design decision, haha

from alchemist.el.

tonini avatar tonini commented on July 22, 2024

I guess we should come up with kind of a minor mode for the alchemist-iex buffer.

from alchemist.el.

tonini avatar tonini commented on July 22, 2024

I added a few useful keybindings to the alchemist-iex-mode e3d98ff

/cc @pragdave maybe you find these also useful.

from alchemist.el.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.