Srijan Choudhary's Articles and Notes Feed for tag: TIL
I had been facing an issue in #Emacs on my work Mac system: C-S-<tab>
was somehow being translated to C-<tab>
. I tried to look into key-translation-map
to figure out the issue, but could not find anything.
Finally, turned out that I had bound C-<tab>
to tab-line-switch-to-next-tab
and C-<iso-lefttab>
to tab-line-switch-to-prev-tab
, but the actual C-S-<tab>
was unbound. C-<iso-lefttab>
only works on linux: something to do with how X11 sends the event to the application (and probably some compatibility mode due to which wayland was doing the same).
On Mac, once I explicitly bound C-S-<tab>
in my Emacs config, it started working correctly.
#Emacs #TIL : I learned about save-interprogram-paste-before-kill
- which saves the existing system clipboard text into the kill ring before replacing it. This ensures that Emacs kill operations do not irrevocably overwrite existing clipboard text.
A common workflow for me is to copy some text from a different application and paste it inside Emacs. But, if I want to first delete a word or region to replace, the deleted word or region goes to the system clipboard and replaces my copied text. This config saves the previous entry in the system clipboard so I can do a C-p
after paste to choose the previous paste.