From 00aecd4a539a3bb575a42c996b64d6c7ea7203d4 Mon Sep 17 00:00:00 2001 From: Jon Hermansen Date: Mon, 2 Oct 2017 10:11:00 -0400 Subject: [PATCH] Prompt user to install react-mode if a .jsx file is opened --- layers/auto-layer.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layers/auto-layer.el b/layers/auto-layer.el index a962c33ee..4860be11b 100644 --- a/layers/auto-layer.el +++ b/layers/auto-layer.el @@ -43,10 +43,11 @@ (configuration-layer/lazy-install 'html :extensions '("\\(\\.slim\\'\\)" slim-mode)) (configuration-layer/lazy-install 'html :extensions '("\\(\\.phtml\\'\\|\\.tpl\\.php\\'\\|\\.twig\\'\\|\\.html\\'\\|\\.htm\\'\\|\\.[gj]sp\\'\\|\\.as[cp]x?\\'\\|\\.eex\\'\\|\\.erb\\'\\|\\.mustache\\'\\|\\.handlebars\\'\\|\\.hbs\\'\\|\\.eco\\'\\|\\.ejs\\'\\|\\.djhtml\\'\\)" web-mode)) (configuration-layer/lazy-install 'idris :extensions '("\\(\\.idr$\\|\\.lidr$\\)" idris-mode)) -;; java +;; javascript (configuration-layer/lazy-install 'javascript :extensions '("\\(\\.coffee\\'\\|\\.iced\\'\\|Cakefile\\'\\|\\.cson\\'\\)" coffee-mode)) (configuration-layer/lazy-install 'javascript :extensions '("\\(\\.js\\'\\)" js2-mode)) (configuration-layer/lazy-install 'javascript :extensions '("\\(\\.json$\\)" json-mode)) +(configuration-layer/lazy-install 'react :extensions '("\\(\\.jsx$\\)" react-mode)) ;; latex (configuration-layer/lazy-install 'lua :extensions '("\\(\\.lua$\\|\\.lua\\'\\)" lua-mode)) (configuration-layer/lazy-install 'nginx :extensions '("\\(nginx\\.conf\\'\\|/nginx/.+\\.conf\\'\\)" nginx-mode))