summaryrefslogtreecommitdiff
path: root/emacs-config.org
diff options
context:
space:
mode:
Diffstat (limited to 'emacs-config.org')
-rw-r--r--emacs-config.org22
1 files changed, 0 insertions, 22 deletions
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)