Herramientas de usuario

Herramientas del sitio


wiki2:emacs

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anterior Revisión previa
Próxima revisión
Revisión previa
wiki2:emacs [2018/12/12 07:56]
alfred [Basic text editor commands]
wiki2:emacs [2020/05/09 09:25] (actual)
Línea 11: Línea 11:
 Close emacs: C-x C-c Close emacs: C-x C-c
  
 +Close an authomatic opened buffer: q
 ===== Opening Emacs ===== ===== Opening Emacs =====
  
Línea 25: Línea 26:
 Save as: C-x C-w Save as: C-x C-w
  
 +==== Open files ====
  
 +When you load a file in Emacs with find-file, it gets put into a "​buffer"​. As long as you don't kill the buffer, it stays in memory, you don't have to reload it.
 +
 +To **create a file**, just visit it with C-x C-f as if it already existed. This creates an empty buffer, in which you can insert the text you want to put in the file. Emacs actually creates the file the first time you save this buffer with C-x C-s. 
 +
 +Open file: C-x C-f
 +
 +Change from opened files (opened buffers): C-x b
 +
 +List of opened buffers: C-x C-b
 +
 +Kill a buffer: C-x k
 +
 +==== Text editing ====
 +
 +Go to the beginning of the line: C-a
 +
 +Kill the rest of the line: C-k
 +
 +Kill the whole line: C-a C-k
 ===== Working with windows ===== ===== Working with windows =====
  
Línea 31: Línea 52:
  
 Close this window: C-x 0 Close this window: C-x 0
 +
 +Split window in horizontal: C-x 2 
 +
 +Split window in vertical: C-x 3
 +
 +After splitting a window you will want to open a buffer on it: C-x b
 +
 +Change to another window: C-x o
 +===== Shell =====
 +
 +Open a buffer with a shell: M-x shell
 +
 +Write one command: M-!
 +
 +===== Notes =====
 +
 +  * {{:​wiki2:​emacs:​refcard.pdf|Reference card}}
wiki2/emacs.1544601369.txt.gz · Última modificación: 2020/05/09 09:24 (editor externo)