Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

New answers tagged

1 vote
Accepted

How do I write a function to copy a region to the MacOS clipboard?

Two useful answers I found: https://emacs.stackexchange.com/a/20892/2147 https://emacs.stackexchange.com/a/20426/2147 I modified the second solution as follows: (defun pbcopy () (interactive) (let ...
Chap's user avatar
  • 187
2 votes

How do I write a function to copy a region to the MacOS clipboard?

The function is already in emacs it is clipboard-kill-ring-save - I have bound that to cmdC where I have bound the cmd key ⌘ to super. This does keep the kill-ring and the clipboard in sync (setq mac-...
mmmmmm's user avatar
  • 525

Top 50 recent answers are included