forked from doomemacs/doomemacs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As it does in vim.
- Loading branch information
Showing
2 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
;;; ui/tabs/autoload.el -*- lexical-binding: t; -*- | ||
;;;###if (featurep! :editor evil) | ||
|
||
;;;###autoload (autoload '+tabs:next-or-goto "ui/tabs/autoload" nil t) | ||
(evil-define-command +tabs:next-or-goto (index) | ||
"Switch to the next tab, or to INDEXth tab if a count is given." | ||
(interactive "<C>") | ||
(if current-prefix-arg | ||
(centaur-tabs-select-visible-nth-tab current-prefix-arg) | ||
(centaur-tabs-forward))) | ||
|
||
;;;###autoload (autoload '+tabs:previous-or-goto "ui/tabs/autoload" nil t) | ||
(evil-define-command +tabs:previous-or-goto (index) | ||
"Switch to the previous tab, or to INDEXth tab if a count is given." | ||
(interactive "<C>") | ||
(if current-prefix-arg | ||
(centaur-tabs-select-visible-nth-tab current-prefix-arg) | ||
(centaur-tabs-backward))) |