From a12860d157d72c376afbe358618885ded70b24f8 Mon Sep 17 00:00:00 2001 From: Blake Romero Date: Wed, 1 Oct 2025 18:21:51 +0100 Subject: Remove kill-ring-save & kill-region defadvice --- emacs-config.org | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'emacs-config.org') diff --git a/emacs-config.org b/emacs-config.org index 8a5217e..257fcb4 100644 --- a/emacs-config.org +++ b/emacs-config.org @@ -61,28 +61,6 @@ Automatically move cursor point on window split. :after (lambda (&rest r) (other-window 1))) #+end_src -Add advice to copy line at cursor point or region. -#+begin_src elisp - (defadvice kill-ring-save (before dwim-copy activate compile) - "Copy the current line at cursor point or region." - (interactive - (if mark-active - (list (region-beginning) (region-end)) - (message "Line copied") - (list (line-beginning-position) - (line-beginning-position 2))))) -#+end_src - -Add advice to cut line or region at cursor point. -#+begin_src elisp - (defadvice kill-region (before dwim-cut activate compile) - "Cut the current line at point or region." - (interactive - (if mark-active (list (region-beginning) (region-end)) - (list (line-beginning-position) - (line-beginning-position 2))))) -#+end_src - Add advice to enable ~query-replace~ to search the whole buffer or region if selected, as the original default behaviour would only begin to replace from the cursor point position. #+begin_src elisp (defun +advice-goto-top-no-region (func &rest args) -- cgit