all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: cro cefisso <crocefisso@gmx.com>
Cc: emacs-devel@gnu.org
Subject: Re: [tab-line] Tabs don't show up at start-up
Date: Tue, 07 Nov 2023 19:30:37 +0200	[thread overview]
Message-ID: <86pm0lzd1e.fsf@mail.linkov.net> (raw)
In-Reply-To: <trinity-0ca61901-ae73-4060-b331-c1a12bff02af-1699359965619@3c-app-mailcom-bs02> (cro cefisso's message of "Tue, 7 Nov 2023 13:26:05 +0100")

> #+begin_src emacs-lisp 
>   (use-package tab-line
>     :ensure nil
>     :config
>     (global-tab-line-mode 1)
>     :bind
>     ("C-<prior>" . tab-line-switch-to-prev-tab)
>     ("C-<iso-lefttab>" . tab-line-switch-to-prev-tab)
>     ("C-<next>" . tab-line-switch-to-next-tab)
>     ("C-<tab>" . tab-line-switch-to-next-tab)
>     :custom
>     (tab-line-new-button-show nil)  ;; do not show add-new button
>     (tab-line-close-button-show nil)  ;; do not show close button
>     (tab-line-separator " ")  ;; set it to empty
>     )
> #+end_src
>  
> The issue is that no tab appears before I do one of the following keybind :
> C-<prior>, "C-<iso-lefttab>, C-<next>, C-<tab>.
> This bug only occurs when the keybindings are specified inside use-package.
> If the keybinds are specified outside of use-package, the bug disappears:

Due to idiosyncrasies of use-package you have to add `:defer nil`:

:defer   Defer loading of a package -- this is implied when using
         `:commands', `:bind', `:bind*', `:mode', `:magic', `:hook',
         `:magic-fallback', or `:interpreter'.  This can be an integer,
         to force loading after N seconds of idle time, if the package
         has not already been loaded.



      reply	other threads:[~2023-11-07 17:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-07 12:26 [tab-line] Tabs don't show up at start-up cro cefisso
2023-11-07 17:30 ` Juri Linkov [this message]

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

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

  git send-email \
    --in-reply-to=86pm0lzd1e.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=crocefisso@gmx.com \
    --cc=emacs-devel@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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.