From 8b18604b63b28361be149f7c2925cfcc66c1e69f Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 20 Oct 2019 12:56:18 -0400 Subject: [PATCH] lang/sh: remove /bin/* fallback mode assocation Now that doom-guess-mode-h exists (which will set the major mode when you save a file in fundamental-mode), this association isn't needed anymore (because doom-guess-mode-h will deduce the mode from the shebang line). --- modules/lang/sh/config.el | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/lang/sh/config.el b/modules/lang/sh/config.el index 0a4b36d30..f8853aa37 100755 --- a/modules/lang/sh/config.el +++ b/modules/lang/sh/config.el @@ -13,8 +13,6 @@ (use-package! sh-script ; built-in :mode ("\\.zunit\\'" . sh-mode) :mode ("/bspwmrc\\'" . sh-mode) - :init - (add-to-list 'auto-mode-alist '("/bin/[^/]+\\'" . sh-mode) 'append) :config (set-electric! 'sh-mode :words '("else" "elif" "fi" "done" "then" "do" "esac" ";;")) (set-repl-handler! 'sh-mode #'+sh/open-repl)