Comments (11)
Thanks for your suggestion. I should definitely include that option in the next release.
For the time being, a quick fix when that happens is to do (winner-undo)
to restore the previous window configuration.
Another hack you could do is to comment out the following line in the code. I haven't tried it myself so there my be unwanted complications.
Line 120 in f395ca4
from eval-in-repl.
Thanks
from eval-in-repl.
I can add a defcustom
variable eir-delete-other-windows
. And add code:
(if eir-delete-other-windows
(delete-other-windows))
Should I add a pull request? Or need to improve this code?
from eval-in-repl.
I can do that. Let me try that out with other supported languages, first.
from eval-in-repl.
You're right.
from eval-in-repl.
I've created a branch to experiment with this. This kind of works, but at the first invocation of C-RET, now REPL window appears, at the second invocation of C-RET a random window (the window emacs chooses by other-window
, I believe) becomes the REPL. Being able to choose which window to turn into a REPL window is ideal. I'll think about how to implement that.
from eval-in-repl.
The function pop-to-buffer
might can be used for the REPL buffer. Because it can config the window display rules, and supported by other extensions like popwin: https://github.com/m2ym/popwin-el/
from eval-in-repl.
I just updated the package so that the window configuration is minimally disturbed by C-RET.
- Only 1 window: Splitting occurs. For some languages (IELM, Python, Hy, shell, currently) which side the REPL takes can be configured.
- 2 windows: The other window becomes the REPL.
- 3+ windows: For the same languages stated above
ace-window
interface allows choosing which window to replace with the REPL. For other languages, it up to their major/minor modes' implementation.
from eval-in-repl.
- Why the new behavior will use one exist window as position, instead of open a new window?
- why by default
<C-return>
will try to send code to inferior? (this is not a good behavior).
from eval-in-repl.
- That may be a better behavior in some settings. I'll consider incorporating that.
- This is the default behavior of the Emacs Speaks Statistics (ESS) package. The very reason of developing this package was to emulate this behavior. Keeping track of both expressions and evaluation results in the REPL buffer is what I am designing this package to do.
from eval-in-repl.
- I see.
from eval-in-repl.
Related Issues (20)
- Shell REPL not working. HOT 2
- Byte-compile warnings HOT 2
- Suggestion: Make eir-jump-after-eval buffer local HOT 7
- Suggestion: Frame support? HOT 2
- First commands not send to shell (windows) HOT 6
- eval-in-repl-ruby error HOT 2
- use *-term instead of shell? HOT 3
- inf-clojure integration HOT 2
- function definition is void: switch-to-js (probably solved)
- Expose a function to just launch the REPL without evaluating something
- send word at cursor to REPL HOT 3
- some changes to eir-eval-in-repl-python and creation of eir-eval-in-perl HOT 4
- Make require js3-mode conditionally HOT 1
- Send buffer to repl
- eval-in-repl for python / jupyter-repl
- js-comint `wrong-number-of-arguments` error
- Racket-mode support uses unavailable function HOT 2
- do not see the command in repl
- Is the project still maintained ?
- Geiser buffers changed names. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eval-in-repl.