Added the equivalent to dd in vim. With M-m

This commit is contained in:
qorg11 2020-06-20 02:19:36 +02:00
parent 95ba46921e
commit 51d76fffdc
No known key found for this signature in database
GPG key ID: 343FC20A4ACA62B9

View file

@ -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. it. I don't think i'd ever use the overwritten.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(global-set-key (kbd "C-c n") 'cleanup-buffer) (global-set-key (kbd "C-c n") 'cleanup-buffer)
(global-set-key (kbd "M-m") 'mark-whole-buffer) (global-set-key (kbd "M-m") 'mark-whole-buffer)
(use-package sudo-edit (use-package sudo-edit
:ensure t :ensure t
:init :init
(global-set-key (kbd "C-x C-r") 'sudo-edit-find-file)) (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 #+END_SRC
* No idea * No idea