Skip to content

Commit

Permalink
fix: Lint checkdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Jun 27, 2024
1 parent 9f04a13 commit 72500aa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
8 changes: 4 additions & 4 deletions centaur-tabs-elements.el
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ the tab name."
(defcustom centaur-tabs-icon-type (and centaur-tabs-set-icons
(or (require 'all-the-icons nil t)
(require 'nerd-icons nil t)))
"Icon type. It should be one of `all-the-icons' and `nerd-icons'."
"Icon type; it should be one of `all-the-icons' and `nerd-icons'."
:group 'centaur-tabs
:type 'symbol
:set
Expand Down Expand Up @@ -242,9 +242,9 @@ ARGS should be a plist containing `:height', `:v-adjust', or `:face' properties.

(defun centaur-tabs--icon-for-mode (mode &rest args)
"Get the formatted icon for MODE.
ARG-OVERRIDES should be a plist containining `:height',
`:v-adjust' or `:face' properties like in the normal icon
inserting functions."
ARGS should be a plist containining `:height', `:v-adjust' or `:face' properties
like in the normal icon inserting functions."
(pcase centaur-tabs-icon-type
('all-the-icons (apply #'all-the-icons-icon-for-mode mode args))
('nerd-icons (apply #'nerd-icons-icon-for-mode mode args))))
Expand Down
14 changes: 6 additions & 8 deletions centaur-tabs-interactive.el
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ not the actual logical index position of the current group."
;; ace-jump style tab switching

(defvar centaur-tabs-ace-jump-active nil
"t if centaur-tabs-ace-jump is invoked.")
"Set to t if `centaur-tabs-ace-jump' is invoked.")

(defvar centaur-tabs-dim-overlay nil
"Holds the overlay for dimming buffer when invoking centaur-tabs-ace-jump.")
Expand Down Expand Up @@ -321,7 +321,7 @@ TAB has to be in the same group as the current tab."
(message "Error: %s is not in the same group as the current tab." tab)))

(defun centaur-tabs-ace-action (action)
"Preform ACTION on a visible tab. Ace-jump style.
"Preform ACTION on a visible tab. Ace-jump style.
ACTION has to be one of value in `centuar-tabs-ace-dispatch-alist'"
(when (centaur-tabs-current-tabset t)
(when centaur-tabs-ace-jump-dim-buffer
Expand Down Expand Up @@ -390,12 +390,10 @@ ACTION has to be one of value in `centuar-tabs-ace-dispatch-alist'"
(centaur-tabs-display-update)))

(defun centaur-tabs-ace-jump (&optional arg)
"Select a tab and perform an action. Ace-jump style.
If no ARG is provided, select that tab.
If prefixed with one `universal-argument', swap the current
tab with the selected tab.
If prefixed with two `universal-argument's, close
selected tab."
"Select a tab and perform an action. Ace-jump style.
If no ARG is provided, select that tab. If prefixed with one
`universal-argument', swap the current tab with the selected tab.
If prefixed with two `universal-argument's, close selected tab."
(interactive "p")
(cond ((eq arg 1)
(centaur-tabs-ace-action 'jump-to-tab))
Expand Down

0 comments on commit 72500aa

Please sign in to comment.