Merge pull request #905 from toctan/fix-kill-region-ad
[Fix #902] Fix kill-region advice
This commit is contained in:
commit
5b0c51d0ed
1 changed files with 1 additions and 0 deletions
|
@ -194,6 +194,7 @@ The body of the advice is in BODY."
|
||||||
|
|
||||||
;; note - this should be after volatile-highlights is required
|
;; note - this should be after volatile-highlights is required
|
||||||
;; add the ability to cut the current line, without marking it
|
;; add the ability to cut the current line, without marking it
|
||||||
|
(require 'rect)
|
||||||
(defadvice kill-region (before smart-cut activate compile)
|
(defadvice kill-region (before smart-cut activate compile)
|
||||||
"When called interactively with no active region, kill a single line instead."
|
"When called interactively with no active region, kill a single line instead."
|
||||||
(interactive
|
(interactive
|
||||||
|
|
Loading…
Reference in a new issue