Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rebox-yank not working with (delete-selection-mode t) #12

Open
c02y opened this issue Sep 20, 2014 · 2 comments
Open

rebox-yank not working with (delete-selection-mode t) #12

c02y opened this issue Sep 20, 2014 · 2 comments

Comments

@c02y
Copy link

c02y commented Sep 20, 2014

I set (delete-selection-mode t) in my .emacs, but after installing rebox2 package, rebox-yank will use C-y which is for built-in yank, (delete-selection-mode t) configuration works with yank but not works with rebox-yank. and I cannot use (put 'rebox-yanl 'disabled t) to disable rebox-yank, even it is once disabled, C-y shortkey won't work.

So my solution is, put (define-key rebox-mode-map [(control y)] nil) after rebox2 configuration, then the command rebox-yank shortkey is cleared, the weird thing is I cannot even execute rebox-yank using M-x after that, it just pastes blank. Now I got yank back, I don't need rebox-yank anyway

So my advice is, when you define the rebox-yank in rebox2 package, try to check if the delete-selection-mode is set or not and do the appropriate actions. Then I don't need to add the ...rebox-mode-map... line and jsut use your rebox-yank command(shortkey).

@c02y c02y changed the title rebox-yank instead of the built-in yank uses C-y rebox-yank not working with (delete-selection-mode t) Sep 20, 2014
@WolfgangRamos
Copy link

WolfgangRamos commented Nov 3, 2017

I had a similar issue with rebox-mode (see Issue #15). I got around it by avoiding rebox-mode and instead simply binding rebox-dwim to a key sequence.

@c02y
Copy link
Author

c02y commented Nov 3, 2017

@WolfgangRamos The last commit date is Nov 13, 2012, I believe that this project is dead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants