unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [tab-line] Tabs don't show up at start-up
@ 2023-11-07 12:26 cro cefisso
  2023-11-07 17:30 ` Juri Linkov
  0 siblings, 1 reply; 2+ messages in thread
From: cro cefisso @ 2023-11-07 12:26 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/html, Size: 2437 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [tab-line] Tabs don't show up at start-up
  2023-11-07 12:26 [tab-line] Tabs don't show up at start-up cro cefisso
@ 2023-11-07 17:30 ` Juri Linkov
  0 siblings, 0 replies; 2+ messages in thread
From: Juri Linkov @ 2023-11-07 17:30 UTC (permalink / raw)
  To: cro cefisso; +Cc: emacs-devel

> #+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.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-07 17:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-07 12:26 [tab-line] Tabs don't show up at start-up cro cefisso
2023-11-07 17:30 ` Juri Linkov

Code repositories for project(s) associated with this public inbox

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

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).