From e13a6d9173df2a457f2cae234e642b1a8109bcad Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 20 Oct 2023 14:34:23 +0200 Subject: [PATCH] =?UTF-8?q?Remove=20the=20=C3=A6-kill-or-copy-whole-line?= =?UTF-8?q?=20command?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I never used, not even bound it. --- configuration.org | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/configuration.org b/configuration.org index ba2cbbd..e285428 100644 --- a/configuration.org +++ b/configuration.org @@ -433,25 +433,6 @@ Copied from http://whattheemacsd.com/editing-defuns.el-01.html (indent-for-tab-command)) #+END_SRC -*** TODO Kill or copy the whole line - -Got from Xah’s site (TODO is for adding a link here.) - -#+BEGIN_SRC emacs-lisp -(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)))) -#+END_SRC - *** Enclose region in a specific character #+BEGIN_SRC emacs-lisp