Fix start up bug
The reason is that this code would run before the dependencies finished, so wrapping in a use-package was the answer.
This commit is contained in:
parent
0611ed6a89
commit
2a5848677a
1 changed files with 15 additions and 13 deletions
|
|
@ -1069,21 +1069,23 @@ And let’s make one tab to be /special/:
|
||||||
And some shortcut keys from the =general= project:
|
And some shortcut keys from the =general= project:
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(general-nmap :prefix "SPC"
|
(use-package emacs
|
||||||
"<tab>" '(:ignore t :which-key "workspaces")
|
:config
|
||||||
"<tab> <tab>" '("switch" . tab-switch)
|
(general-nmap :prefix "SPC"
|
||||||
"<tab> p" '("new project" . ha-tab-bar-new-project)
|
"<tab>" '(:ignore t :which-key "workspaces")
|
||||||
"<tab> n" '("new space" . ha-tab-bar-new)
|
"<tab> <tab>" '("switch" . tab-switch)
|
||||||
"<tab> u" '("update names" . ha-tab-bar-update-names)
|
"<tab> p" '("new project" . ha-tab-bar-new-project)
|
||||||
"<tab> d" '("delete space" . ha-tab-bar-delete)
|
"<tab> n" '("new space" . ha-tab-bar-new)
|
||||||
"<tab> w" '("special space" . ha-switch-to-special)
|
"<tab> u" '("update names" . ha-tab-bar-update-names)
|
||||||
"<tab> `" '("recent" . tab-bar-switch-to-recent-tab))
|
"<tab> d" '("delete space" . ha-tab-bar-delete)
|
||||||
|
"<tab> w" '("special space" . ha-switch-to-special)
|
||||||
|
"<tab> `" '("recent" . tab-bar-switch-to-recent-tab))
|
||||||
|
|
||||||
(global-set-key (kbd "s-C-t") 'ha-tab-bar-new)
|
(global-set-key (kbd "s-C-t") 'ha-tab-bar-new)
|
||||||
(global-set-key (kbd "s-C-[") 'tab-bar-switch-to-prev-tab)
|
(global-set-key (kbd "s-C-[") 'tab-bar-switch-to-prev-tab)
|
||||||
(global-set-key (kbd "s-C-]") 'tab-bar-switch-to-next-tab)
|
(global-set-key (kbd "s-C-]") 'tab-bar-switch-to-next-tab)
|
||||||
|
|
||||||
(tab-bar-mode 1)
|
(tab-bar-mode 1))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
I want to quickly jump, by the number shown on the tab, to that grouping. The following two functions create leader sequences with the name of the tab group:
|
I want to quickly jump, by the number shown on the tab, to that grouping. The following two functions create leader sequences with the name of the tab group:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue