1 line
1.4 KiB
Plaintext
1 line
1.4 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>Working in Emacs I often use shift button, also I use delete button. Sometimes I press them both accidentally, but Shift + Delete causes instant deletion of all the text above the cursor (yep, this is how shift+delete works on Windows). Is there a simple way (because I am a dummy) to write something in my .emacs file to ban the combination shift + delete in emacs?</p> <p><strong>Update</strong>: I'm not sure what is going on, I reopened emacs, tried that again: In some documents the shift+delete doesn't cause the deletion of all the text above the cursor, but in some it still does. Looks like it somehow related to Org mode in my case. Hm... Though, better to deactivate that shift+delete combination anyway.</p> <p><strong>UpDate2:</strong> Looks like shift+delete erase the text between the cursor and the last "mark set" place in the text. Considering that a mark can be set just by double click of the mouse by accident in any place of the text, it causes those unexpected deletions. </p> <p>​</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/Dimimimitriks"> /u/Dimimimitriks </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/pon2qp/how_to_ban_shift_delete_in_emacs_on_windows/">[link]</a></span>   <span><a href="https://www.reddit.com/r/emacs/comments/pon2qp/how_to_ban_shift_delete_in_emacs_on_windows/">[comments]</a></span> |