unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "R. Diez" <rdiezmail-emacs@yahoo.de>
To: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Help customising the behaviour of the new Tab Line mode
Date: Fri, 14 Aug 2020 15:34:29 +0200	[thread overview]
Message-ID: <005b781b-a6e0-e1b8-bf2e-090c67de16ac@yahoo.de> (raw)
In-Reply-To: 005b781b-a6e0-e1b8-bf2e-090c67de16ac.ref@yahoo.de

Hi all:

I have been accumulating frustration with Emacs since many years, but the 27.1 release got me excited again. Specifically:


Feature 1) "Mouse scroll up and down with control key modifier changes font size."

Wow, zoom in, like everybody else!


Feature 2) Tab Line mode

Tabs! Official tabs!!! Finally!!!!!

Could it be that the Emacs developers are actually listening to us, humble users????


I have already written in this mailing list about how important tabs are for me, because they help me use my positional memory to switch 
quickly between documents. The gory details are here:

https://lists.gnu.org/archive/html/help-gnu-emacs/2018-06/msg00289.html

For example, I tend to have source.h to the left and source.cpp to the right, so that I can quickly switch between them. I tend to keep all 
such .h & .cpp files in pairs on the tab bar. I know I could use 'ff-find-other-file' for that, but I use these positional navigation in 
many other situations, like base.h to the left, and derived.h to the right. And so on.

I have been using old package tabbar.el, but it is full of bugs and quirks. There are some variants with other bugs and quirks. I have 
compensated with my poor Lisp. But now, I want to do it "right" with the new Tab Line mode in Emacs 27.1.


Issue 1) The first thing I noticed is that 'compile' creates a window/pane/whatever for the compilation output, and the tab line at the top 
does not show the compilation buffert. In fact, if I call split-window-below, the tab line below only has the current buffer on it. However, 
I would like all Tab Lines to show all buffers (or at least all buffers visited in the whole frame). And I want all those buffers to have 
the same tab order (because my positional memory is useful, but limited). That would match the behaviour of the old tabbar.el package. How 
do I achieve that? Please remember that my Lisp is rather limited. I can tinker, but it won't be pretty. 8-)


Issue 2) The second thing I am missing is the ability to reorder tabs. I actually do not touch the mouse for that. To get an idea of what I 
am looking for, open a few web pages in Firefox or Chromium, and then:

- Press Ctrl+PageUp to move the current view a few pages to the right.
- Press Ctrl+Shift+PageDown to move the current tab to the left, exchanging its position with the previous tab.

With key shortcuts Ctrl+Shift+PageUp and Ctrl+Shift+PageDown, I have got used to reordering tabs very quickly. It is like reordering your 
objects on your physical desktop to your liking, so that you always find everything quickly.

Has anybody written some Lisp to achieve that reordering with Emacs 27.1's Tab Line mode?


Many thanks in advance,
   rdiez



       reply	other threads:[~2020-08-14 13:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <005b781b-a6e0-e1b8-bf2e-090c67de16ac.ref@yahoo.de>
2020-08-14 13:34 ` R. Diez [this message]
2020-08-14 14:26   ` Help customising the behaviour of the new Tab Line mode Robert Pluim
2020-08-14 19:37     ` R. Diez
2020-08-15 10:09   ` Michael Heerdegen
2020-08-16  1:27     ` Juri Linkov
2020-08-17  0:33   ` Juri Linkov
2020-08-18  6:12     ` R. Diez
2020-08-19  1:28       ` Juri Linkov
2020-08-19  7:16         ` R. Diez
2020-08-20  0:31           ` Juri Linkov
2020-08-20  4:11           ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=005b781b-a6e0-e1b8-bf2e-090c67de16ac@yahoo.de \
    --to=rdiezmail-emacs@yahoo.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).