Files
.emacs.d/modules/languages/siren-jsx.el
Jim Myhrberg 8ed4a4e6f5 refactor: Visual indentation guides
- Switch from highlight-indentation package to highlight-indent-guides.
- Activate visual indentation in a prog-mode hook, rather than doing
  within each individual major mode. It was already done within all
  major modes based on prog-mode anyway.
- Add new siren-display-indetation module and function as a central way
  to enable visual indetation guides. This makes switching the
  underlying package at some point in the future much easier.
2020-01-26 18:53:44 +00:00

26 lines
492 B
EmacsLisp

;;; siren-jsx.el --- jimeh's Emacs Siren: .jsx file configuration
;;; Commentary:
;; Basic configuration for dealing with .jsx files.
;;; Code:
(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)
(hs-minor-mode +1)
(hideshowvis-enable)))
(provide 'siren-jsx)
;;; siren-jsx.el ends here