Skip to content

Commit

Permalink
fix: get indent level by mode from standard indent
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Feb 11, 2025
1 parent 6b55986 commit d8fcfff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion indent-control.el
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,9 @@
(let ((var-symbol (indent-control--indent-level-name)))
(when (listp var-symbol) (setq var-symbol (nth 0 var-symbol)))
(unless (symbol-value var-symbol) (indent-control-ensure-indentable))
(or (symbol-value var-symbol) tab-width)))
(or (symbol-value var-symbol)
standard-indent
tab-width)))

(defun indent-control--delta-indent-level (delta-value)
"Increase/Decrease tab width by DELTA-VALUE."
Expand Down

0 comments on commit d8fcfff

Please sign in to comment.