.emacs.d

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

commit b09154531f3c10026848afd057aafb0f2c959c52
parent 031b313ff98217fd5195cef0a9cd7f14d1542d9c
Author: Hugo Soucy <hugo.soucy@equisoft.com>
Date:   Fri, 22 Feb 2019 11:12:55 -0500

Modify the web-mode config for JSX

Diffstat:
Mpartials/webdev.el | 15++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/partials/webdev.el b/partials/webdev.el @@ -1,7 +1,7 @@ ;; WEBDEV ;; (use-package js2-mode - ;; Improved JavaScript editing mode. + ;;; Improved JavaScript editing mode. :ensure t :pin melpa :config @@ -36,18 +36,19 @@ (add-to-list 'auto-mode-alist '("\\.mustache\\'" . web-mode)) (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 '("\\.twig\\'" . 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)) + ad-do-it) + ad-do-it))) (use-package markdown-mode ;; Major mode for Markdown-formatted text. :ensure t :pin melpa) -;; (use-package indium -;; ;; JavaScript Awesome Development Environment -;; :ensure t -;; :pin melpa) - (use-package emmet-mode ;; Unofficial Emmet's support for emacs. :ensure t