help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mark multi regions, kill and yank


From: Bob Newell
Subject: Re: mark multi regions, kill and yank
Date: Mon, 30 Oct 2023 09:56:41 -1000
User-agent: Chrome/5.0

>> ;;; A couple of append commands for scatter-gather.  Bind to
>> ;;; global keys. Why C-cps and C-cpk? Because it's difficult,
>> ;;; especially in org-mode, to find free keys.
>
>> (defun append-kill-to-kill-ring ()
>>   (interactive)
>> (append-next-kill)
>> (kill-region (mark) (point)))
>
>> (defun append-save-to-kill-ring ()
>>   (interactive)
>> (append-next-kill)
>> (kill-ring-save (mark) (point)))
>
>> (global-set-key "\C-cps" 'append-save-to-kill-ring)
>> (global-set-key "\C-cpk" 'append-kill-to-kill-ring)
>
>
> Thanks, but this does not allow you to mark visually various region at
> the same time, right?

Unfortunately not. It is a 50% solution.  But now other posts
in this thread have shown how to do what you wish.

-- 
Bob Newell
Honolulu, Hawai`i

- Via GNU/Linux/Emacs/Gnus/BBDB



reply via email to

[Prev in Thread] Current Thread [Next in Thread]