Skip to content

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

@c02y

Description

@c02y

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions