The SSH host key has changed on 8 April, 2022 to this one: SHA256:573uTBSeh74kvOo0HJXi5ijdzRm8me27suzNEDlGyrQ
Browse Source

Add the æ-kill-or-copy-whole-line function

I’m not sure yet if this will be useful in the future, though…
gerrit-package
Gergely Polonkai 6 years ago
parent
commit
46fe49e944
  1. 13
      lisp/buf-manipulation.el

13
lisp/buf-manipulation.el

@ -114,3 +114,16 @@ Version 2016-02-16"
(looking-back eshell-prompt-regexp))
(kill-buffer)
(signal (car err) (cdr err))))))
(defun æ-kill-or-copy-whole-line (kill)
"Kill or copy the whole line point is on.
If KILL is non-nil, the line gets killed. Otherwise, it gets just
copied to the kill-ring."
(interactive "P")
(if kill
(kill-whole-line)
(let ((beginning (progn (beginning-of-line) (point)))
(end (progn (end-of-line) (point))))
(copy-region-as-kill beginning end))))

Loading…
Cancel
Save