From 8c5286f2dc318674bb4ed668a7978645d9fc1e47 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 2 Feb 2018 20:46:02 -0500 Subject: [PATCH] lang/sh: silence indentation messages --- modules/lang/sh/config.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/lang/sh/config.el b/modules/lang/sh/config.el index 6a78ed628..79ed15e44 100644 --- a/modules/lang/sh/config.el +++ b/modules/lang/sh/config.el @@ -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')