Skip to content

Commit 2772354

Browse files
committed
Re-order.
1 parent 21b549f commit 2772354

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

indent-control.el

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,6 @@
226226
(indent-control-set-indent-level-by-mode
227227
(indent-control--delta-ensure-valid-tab-width indent-level delta-value))))
228228

229-
(defun indent-control--prog-mode-hook ()
230-
"Programming language mode hook."
231-
(indent-control--mute-apply
232-
(indent-control-continue-with-record)))
233-
(add-hook 'prog-mode-hook #'indent-control--prog-mode-hook)
234-
235229
;;;###autoload
236230
(defun indent-control-inc-indent-level ()
237231
"Increase indent level by one level."
@@ -251,6 +245,12 @@
251245
"Keep the tab width the same as last time modified."
252246
(indent-control-set-indent-level-by-mode (indent-control--indent-level-record)))
253247

248+
(defun indent-control--prog-mode-hook ()
249+
"Programming language mode hook."
250+
(indent-control--mute-apply
251+
(indent-control-continue-with-record)))
252+
(add-hook 'prog-mode-hook #'indent-control--prog-mode-hook)
253+
254254
;; NOTE: Initial the indent level once after module is loaded.
255255
;;;###autoload
256256
(indent-control-continue-with-record)

0 commit comments

Comments
 (0)