From e972c97b2e071055af438c597bdfb6d6ef315530 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 19 Oct 2019 13:52:27 -0400 Subject: [PATCH] lang/sh: remove zsh detection sh-mode already does its own detection for zsh, so this is unnecessary. --- modules/lang/sh/config.el | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) mode change 100644 => 100755 modules/lang/sh/config.el diff --git a/modules/lang/sh/config.el b/modules/lang/sh/config.el old mode 100644 new mode 100755 index 03e9b3de1..0a4b36d30 --- a/modules/lang/sh/config.el +++ b/modules/lang/sh/config.el @@ -49,17 +49,7 @@ (add-hook 'sh-mode-hook #'rainbow-delimiters-mode) ;; autoclose backticks - (sp-local-pair 'sh-mode "`" "`" :unless '(sp-point-before-word-p sp-point-before-same-p)) - - ;; sh-mode has file extensions checks for other shells, but not zsh, so... - (add-hook! 'sh-mode-hook - (defun +sh-detect-zsh-h () - (when (or (and buffer-file-name - (string-match-p "\\.zsh\\'" buffer-file-name)) - (save-excursion - (goto-char (point-min)) - (looking-at-p "^#!.+/zsh[$ ]"))) - (sh-set-shell "zsh"))))) + (sp-local-pair 'sh-mode "`" "`" :unless '(sp-point-before-word-p sp-point-before-same-p))) (use-package! company-shell