From e7d9555bc3e658ded6a841bd4b1c55d906f7989d Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Sat, 19 Apr 2014 15:05:09 +0300 Subject: [PATCH] Remove a couple of kill-related advices Those are made redundant by the awesome easy-kill. --- core/prelude-editor.el | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/core/prelude-editor.el b/core/prelude-editor.el index e849eaa..038d2c5 100644 --- a/core/prelude-editor.el +++ b/core/prelude-editor.el @@ -201,23 +201,6 @@ The body of the advice is in BODY." (volatile-highlights-mode t) (diminish 'volatile-highlights-mode) -;; note - this should be after volatile-highlights is required -;; add the ability to copy and cut the current line, without marking it -(defadvice kill-ring-save (before smart-copy activate compile) - "When called interactively with no active region, copy a single line instead." - (interactive - (if mark-active (list (region-beginning) (region-end)) - (message "Copied line") - (list (line-beginning-position) - (line-end-position))))) - -(defadvice kill-region (before smart-cut activate compile) - "When called interactively with no active region, kill a single line instead." - (interactive - (if mark-active (list (region-beginning) (region-end)) - (list (line-beginning-position) - (line-beginning-position 2))))) - ;; tramp, for sudo access (require 'tramp) ;; keep in mind known issues with zsh - see emacs wiki