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).
I set
(delete-selection-mode t)in my.emacs, but after installingrebox2package,rebox-yankwill useC-ywhich is for built-inyank,(delete-selection-mode t)configuration works withyankbut not works withrebox-yank. and I cannot use(put 'rebox-yanl 'disabled t)to disablerebox-yank, even it is once disabled,C-yshortkey won't work.So my solution is, put
(define-key rebox-mode-map [(control y)] nil)after rebox2 configuration, then the commandrebox-yankshortkey is cleared, the weird thing is I cannot even executerebox-yankusingM-xafter that, it just pastes blank. Now I gotyankback, I don't needrebox-yankanywaySo my advice is, when you define the
rebox-yankin rebox2 package, try to check if thedelete-selection-modeis set or not and do the appropriate actions. Then I don't need to add the...rebox-mode-map...line and jsut use yourrebox-yankcommand(shortkey).