Emacs, LibreOffice Writer and Vivaldi are the productivity tools I use
most often. So I like to incorporate a feature from one into the
others. One example is the ability to initiate a search from selected
text. I added this feature to LibreOffice as described here. Another nice
feature is the ability to switch between the current buffer and the next (or
previous) buffer with C-<TAB> and C-S-<TAB>
that I added to Emacs1.
But I've also configured Vivaldi with a useful Emacs feature. Now it
responds to C-S-k by invoking "Close tabs to the Right."
Emacs devotees know that C-k is bound
to kill-line, which "Kill[s] the rest of the current
line...."2 If you imagine that the row of tabs is a line of
text, it's natural to expect C-k (or C-S-k)
would remove all the tabs to the right of the current tab.
Why did I choose the key combination C-S-k instead
of C-k? I think at the time C-k performed another
function. Or perhaps I felt that it was more appropriate to use two
modifier keys for such a significant operation. I rarely need to
delete tabs to the left; if I did, I'd bind C-M-S-k to "Close tabs to
the Left."
You might utter the following complaint, "But C-S-k doesn't work for
Gmail; it brings up a virtual keyboard instead!" Correct. So while
we're on the topic of Vivaldi key configurations, I'd like to point
out that it's possible to tell Vivaldi to ignore a website's key
assignment, allowing the key to pass to Vivaldi. Just search for the
setting "Browser Priority Shortcuts," click on one of the existing key
combinations and press C-S-k to add it to the others.
I rely on the web browser's tab history a great deal, too. I'm working on implementing something vaguely similar for Emacs."
1 To get the C-<TAB>
and C-S-<TAB> to switch buffers, just add
this to your init file:
(keymap-global-set "C-<tab>" 'next-buffer)(keymap-global-set "C-S-<tab>" 'previous-buffer)
2 https://www.gnu.org/software/emacs/manual/html_node/emacs/Killing-by-Lines.html
No comments:
Post a Comment
Thank you for taking time to comment. Please note that comments may be deleted if they:
* Contain link(s) to a domain outside USA or Canada or to a commercial enterprise.
* Include non-English words or characters.
* Are irrelevant to the subject matter of the post.
For posts older than 14 days, comments are moderated and require approval.