Files
.emacs.d/modules/languages/siren-jsx.el
Jim Myhrberg 4ea4f6dc95 chore(completion): remove needless company-mode references
Since we enable global-company-mode, explicitly enabling it in the setup
for various major modes does nothing. But it does tie the code to
company mode, making it harder to try alternatives like corfu.
2022-03-14 11:58:47 +00:00

25 lines
467 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)
(subword-mode +1)
(siren-folding)))
(provide 'siren-jsx)
;;; siren-jsx.el ends here