A few questions from Emacs noob

Sorry if these are obvious answers, but I searched googled and cannot find what I am looking for.

  • When I have several files opened in split-screen mode, using C-x C-3, how do I close the JUST window that I am currently in and no one else?

  • I am using Ruby and it does not seem to automatically indent my def endcorrectly .. is there a Ruby plugin that will fix this?

  • Is there a command to go to a specific line?

  • How to interpret ruby ​​from emacs?

+3
source share
4 answers

1. When I have several files opened in split-screen mode, using C-x C-3, how do I close the JUST window that I am currently in and no one else?

C-x 0. (, , C-x 3.)

2. Ruby, , , def end .. Ruby, ?

3. ?

, M-g g ( M-x goto-line)

4. Ruby emacs?

. rubydebug.

+8

C-h b, , , . Ruby C-h m , .

+1

for Q3), in addition, you may want to know Ch w COMMAND will always show you the key binding for funcion

C-h w goto-line RET
goto-line is on M-g g, M-g M-g, <menu-bar> <edit> <goto> <go-to-line>
0
source

for Q4), you can run the shell in the buffer, either M-x eshell, or M-x shell, and just run your script.

Using the eshell configuration in [1], you can easily switch between the shell and your script source (by pressing Cz).

[1] http://www.emacswiki.org/alex/2008-08-19_Emacs_on_Windows

0
source

Source: https://habr.com/ru/post/1774260/


All Articles