From 607d0549f37f03581f32e784f09525f444a22132 Mon Sep 17 00:00:00 2001 From: Sebastian Wiesner Date: Mon, 16 Nov 2015 11:07:10 +0100 Subject: [PATCH] Don't set match data needlessly --- layers/+lang/shell-scripts/packages.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/+lang/shell-scripts/packages.el b/layers/+lang/shell-scripts/packages.el index ef0bccf3c..0c5111c09 100644 --- a/layers/+lang/shell-scripts/packages.el +++ b/layers/+lang/shell-scripts/packages.el @@ -36,6 +36,6 @@ (defun spacemacs//setup-shell () (when (and buffer-file-name - (string-match "\\.zsh\\'" buffer-file-name)) + (string-match-p "\\.zsh\\'" buffer-file-name)) (sh-set-shell "zsh"))) (add-hook 'sh-mode-hook 'spacemacs//setup-shell))))