116 |
;; You can do this automatically like this: |
;; You can do this automatically like this: |
117 |
;; (add-hook 'sh-set-shell-hook 'sh-learn-buffer-indent) |
;; (add-hook 'sh-set-shell-hook 'sh-learn-buffer-indent) |
118 |
;; |
;; |
119 |
;; However... `sh-learn-buffer-indent' is extremely slow, |
;; However... `sh-learn-buffer-indent' is extremely slow, |
120 |
;; especially on large-ish buffer. Also, if there are conflicts the |
;; especially on large-ish buffer. Also, if there are conflicts the |
121 |
;; "last one wins" which may not produce the desired setting. |
;; "last one wins" which may not produce the desired setting. |
122 |
;; |
;; |
1058 |
sh-symbol-list)) |
sh-symbol-list)) |
1059 |
|
|
1060 |
(defcustom sh-indent-for-fi 0 |
(defcustom sh-indent-for-fi 0 |
1061 |
"*How much to indent a fi relative to an if. Usually 0." |
"*How much to indent a fi relative to an if. Usually 0." |
1062 |
:type `(choice ,@ sh-number-or-symbol-list ) |
:type `(choice ,@ sh-number-or-symbol-list ) |
1063 |
:group 'sh-indentation) |
:group 'sh-indentation) |
1064 |
|
|
1065 |
(defcustom sh-indent-for-done '0 |
(defcustom sh-indent-for-done '0 |
1066 |
"*How much to indent a done relative to its matching stmt. Usually 0." |
"*How much to indent a done relative to its matching stmt. Usually 0." |
1067 |
:type `(choice ,@ sh-number-or-symbol-list ) |
:type `(choice ,@ sh-number-or-symbol-list ) |
1068 |
:group 'sh-indentation) |
:group 'sh-indentation) |
1069 |
|
|