From 51d76fffdc8a80479668902960d527157066d94d Mon Sep 17 00:00:00 2001 From: qorg11 Date: Sat, 20 Jun 2020 02:19:36 +0200 Subject: [PATCH] Added the equivalent to dd in vim. With M-m --- config.org | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/config.org b/config.org index 51766a3..787d89f 100644 --- a/config.org +++ b/config.org @@ -101,12 +101,23 @@ Including indent-buffer, which should not be called automatically on save." it. I don't think i'd ever use the overwritten. #+BEGIN_SRC emacs-lisp -(global-set-key (kbd "C-c n") 'cleanup-buffer) -(global-set-key (kbd "M-m") 'mark-whole-buffer) -(use-package sudo-edit -:ensure t -:init -(global-set-key (kbd "C-x C-r") 'sudo-edit-find-file)) + (global-set-key (kbd "C-c n") 'cleanup-buffer) + (global-set-key (kbd "M-m") 'mark-whole-buffer) + (use-package sudo-edit + :ensure t + :init + (global-set-key (kbd "C-x C-r") 'sudo-edit-find-file)) + ;; dd in Vim, this is here because call-cc told me. + + (defun delete-shit () + (interactive) + (move-beginning-of-line nil) + (kill-line) + (forward-line -1)) + + (global-set-key (kbd "M-m") 'delete-shit) + + #+END_SRC * No idea