mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
- Add a siren-folding function which enables all folding-related modes, and change other modules to use this new function.
26 lines
489 B
EmacsLisp
26 lines
489 B
EmacsLisp
;;; siren-jsx.el --- jimeh's Emacs Siren: .jsx file configuration
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for dealing with .jsx files.
|
|
|
|
;;; Code:
|
|
|
|
(require 'siren-folding)
|
|
(require 'siren-prettier-js)
|
|
|
|
(use-package rjsx-mode
|
|
:mode "components\\/.*\\.js\\'"
|
|
|
|
:hook (rjsx-mode . siren-rjsx-mode-setup)
|
|
|
|
:init
|
|
(defun siren-rjsx-mode-setup ()
|
|
(prettier-js-mode +1)
|
|
(company-mode +1)
|
|
(subword-mode +1)
|
|
(siren-folding)))
|
|
|
|
(provide 'siren-jsx)
|
|
;;; siren-jsx.el ends here
|