D – wie Delete#
Delete#
URL: Löschen letzter Zugriff: 2020-11-25
- Zitat
TexInfo 12.1.1 Deletion
Deletion means erasing text and not saving it in the kill ring. For the most part, the Emacs commands that delete text are those that erase just one character or only whitespace.
‘<DEL>’
‘<BACKSPACE>’
Delete the previous character, or the text in the region if it is
active (‘delete-backward-char’).
‘<Delete>’
Delete the next character, or the text in the region if it is
active (‘delete-forward-char’).
‘C-d’
Delete the next character (‘delete-char’).
‘M-\’
Delete spaces and tabs around point (‘delete-horizontal-space’).
‘M-<SPC>’
Delete spaces and tabs around point, leaving one space
(‘just-one-space’).
‘C-x C-o’
Delete blank lines around the current line (‘delete-blank-lines’).
‘M-^’
Join two lines by deleting the intervening newline, along with any
indentation following it (‘delete-indentation’).
Löschen einer Zeile#
Um eine Zeile zu löschen, muss man zwei mal Ctrl+k drücken. Das erste Ctlr+k Löscht den Inhalt der Zeile, es bleibt eine leere Zeile zurück. soll die auch noch gelösscht werden muss Ctrl+k ein zweites mal gedrückt werden.
Das verfahren läßt sich mit folgendem Eintrag in der Datei config.org abkürzen:
** Zeile löschen in einem Schritt
#+BEGIN_SRC emacs-lisp
(setq kill-whole-line t)
#+END_SRC