lang/sh: silence indentation messages
This commit is contained in:
parent
160902bd18
commit
8c5286f2dc
1 changed files with 5 additions and 0 deletions
|
@ -28,6 +28,11 @@
|
|||
(nil "^\\s-*\\([[:alpha:]_-][[:alnum:]_-]*\\)\\s-*()" 1))))
|
||||
sh-imenu-generic-expression)
|
||||
|
||||
(defun +sh*silence-messages (orig-fn &rest args)
|
||||
"`sh-set-shell' is chatty about it setting up indentation rules. Shut up."
|
||||
(quiet! (apply orig-fn args)))
|
||||
(advice-add #'sh-set-shell :around #'+sh*silence-messages)
|
||||
|
||||
;; 1. Fontifies variables in double quotes
|
||||
;; 2. Fontify command substitution in double quotes
|
||||
;; 3. Fontify built-in/common commands (see `+sh-builtin-keywords')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue