mirror of
https://github.com/jimeh/yank-indent.git
synced 2026-02-19 09:36:40 +00:00
chore(custom): remove needless :group property from defcustoms
Groups are tracked on a per-file basis with the custom-current-group-alist variable, which is set by defgroup, and used by defcustom to set the group property if it is not provided.
This commit is contained in:
@@ -52,8 +52,7 @@ If the yanked region contains more characters than the value
|
|||||||
specified by `yank-indent-threshold', the automatic indentation
|
specified by `yank-indent-threshold', the automatic indentation
|
||||||
will not occur. This helps prevent performance issues when
|
will not occur. This helps prevent performance issues when
|
||||||
working with large blocks of text."
|
working with large blocks of text."
|
||||||
:type 'number
|
:type 'number)
|
||||||
:group 'yank-indent)
|
|
||||||
|
|
||||||
(defcustom yank-indent-derived-modes '(prog-mode tex-mode)
|
(defcustom yank-indent-derived-modes '(prog-mode tex-mode)
|
||||||
"Derived major modes where `yank-indent-mode' should be enabled.
|
"Derived major modes where `yank-indent-mode' should be enabled.
|
||||||
@@ -64,8 +63,7 @@ listed in this variable. This is useful when you want to enable
|
|||||||
`yank-indent-mode' for all modes that inherit from a specific
|
`yank-indent-mode' for all modes that inherit from a specific
|
||||||
mode, such as `prog-mode' for programming modes or `text-mode'
|
mode, such as `prog-mode' for programming modes or `text-mode'
|
||||||
for text editing modes."
|
for text editing modes."
|
||||||
:type '(repeat symbol)
|
:type '(repeat symbol))
|
||||||
:group 'yank-indent)
|
|
||||||
|
|
||||||
(defcustom yank-indent-exact-modes '()
|
(defcustom yank-indent-exact-modes '()
|
||||||
"Major modes where `yank-indent-mode' should be enabled.
|
"Major modes where `yank-indent-mode' should be enabled.
|
||||||
@@ -77,8 +75,7 @@ will not be activated in modes derived from those listed here.
|
|||||||
Use this variable to list specific modes where you want
|
Use this variable to list specific modes where you want
|
||||||
`yank-indent-mode' to be enabled without affecting their derived
|
`yank-indent-mode' to be enabled without affecting their derived
|
||||||
modes."
|
modes."
|
||||||
:type '(repeat symbol)
|
:type '(repeat symbol))
|
||||||
:group 'yank-indent)
|
|
||||||
|
|
||||||
(defcustom yank-indent-excluded-modes '(cmake-ts-mode
|
(defcustom yank-indent-excluded-modes '(cmake-ts-mode
|
||||||
coffee-mode
|
coffee-mode
|
||||||
@@ -103,8 +100,7 @@ modes. This list takes precedence over
|
|||||||
`yank-indent-derived-modes' and `yank-indent-exact-modes'. Use
|
`yank-indent-derived-modes' and `yank-indent-exact-modes'. Use
|
||||||
this variable to exclude specific modes and their derived modes
|
this variable to exclude specific modes and their derived modes
|
||||||
from having `yank-indent-mode' enabled."
|
from having `yank-indent-mode' enabled."
|
||||||
:type '(repeat symbol)
|
:type '(repeat symbol))
|
||||||
:group 'yank-indent)
|
|
||||||
|
|
||||||
(defun yank-indent--should-enable-p ()
|
(defun yank-indent--should-enable-p ()
|
||||||
"Return non-nil if current mode should be indented."
|
"Return non-nil if current mode should be indented."
|
||||||
@@ -121,8 +117,7 @@ When enabled, this mode indents the yanked region according to
|
|||||||
the current mode's indentation rules, provided that the region
|
the current mode's indentation rules, provided that the region
|
||||||
size is less than or equal to `yank-indent-threshold' and no
|
size is less than or equal to `yank-indent-threshold' and no
|
||||||
prefix argument is given during yanking."
|
prefix argument is given during yanking."
|
||||||
:lighter " YI"
|
:lighter " YI")
|
||||||
:group 'yank-indent)
|
|
||||||
|
|
||||||
(defun yank-indent--enable ()
|
(defun yank-indent--enable ()
|
||||||
"Enable `yank-indent-mode' if the current buffer meets the criteria."
|
"Enable `yank-indent-mode' if the current buffer meets the criteria."
|
||||||
@@ -132,8 +127,7 @@ prefix argument is given during yanking."
|
|||||||
;;;###autoload
|
;;;###autoload
|
||||||
(define-globalized-minor-mode global-yank-indent-mode
|
(define-globalized-minor-mode global-yank-indent-mode
|
||||||
yank-indent-mode
|
yank-indent-mode
|
||||||
yank-indent--enable
|
yank-indent--enable)
|
||||||
:group 'yank-indent)
|
|
||||||
|
|
||||||
(defun yank-indent--after-yank-advice (&optional _)
|
(defun yank-indent--after-yank-advice (&optional _)
|
||||||
"Conditionally indent the region (yanked text) after yanking.
|
"Conditionally indent the region (yanked text) after yanking.
|
||||||
|
|||||||
Reference in New Issue
Block a user