.emacs.d

My Emacs configuration files.
Log | Files | Refs | README

commit a5a117196b8c87ba0fd0fe752647bc3d3d9a9880
parent 5cf7ad423cd9efc2c15c65a815808fc892944d30
Author: Hugo Soucy <hugo.soucy@equisoft.com>
Date:   Mon,  6 May 2019 12:54:24 -0400

Remove js2-refactor & rjsx-mode

Diffstat:
Mpartials/webdev.el | 24+++++++++++-------------
1 file changed, 11 insertions(+), 13 deletions(-)

diff --git a/partials/webdev.el b/partials/webdev.el @@ -9,18 +9,6 @@ (add-hook 'js2-mode-hook #'js2-imenu-extras-mode) (add-hook 'js2-mode-hook #'js2-refactor-mode)) -;; (use-package js2-refactor -;; ;; A JavaScript refactoring library for emacs. -;; :ensure t -;; :pin melpa) - -(use-package rjsx-mode - ;; Real support for JSX - :ensure t - :pin melpa - :config - (add-to-list 'auto-mode-alist '("components\\/.*\\.js\\'" . rjsx-mode))) - (use-package web-mode ;; major mode for editing web templates. ;; To set engine on the fly : @@ -43,7 +31,7 @@ (add-to-list 'auto-mode-alist '("\\.djhtml\\'" . web-mode)) (add-to-list 'auto-mode-alist '("\\.etlua\\'" . web-mode)) (add-to-list 'auto-mode-alist '("\\.twig\\'" . web-mode)) - ;; (add-to-list 'auto-mode-alist '("\\.jsx\\'" . web-mode)) + (add-to-list 'auto-mode-alist '("\\.jsx\\'" . web-mode)) (defadvice web-mode-highlight-part (around tweak-jsx activate) (if (equal web-mode-content-type "jsx") (let ((web-mode-enable-part-face nil)) @@ -75,3 +63,13 @@ ;; Major mode for editing JSON files :ensure t :pin gnu) + +(use-package mmm-mode + ;; Allow Multiple Major Modes in a buffer + :ensure t + :pin gnu + :config + (setq mmm-global-mode 'maybe) + (mmm-add-mode-ext-class 'scss-mode "\\.jsx\\'" 'scss-jsx)) + +;;; webdev.el ends here