+ :popup -> set-popup-rule! + :popups -> set-popup-rules! + :company-backend -> set-company-backend! + :evil-state -> set-evil-initial-state! I am slowly phasing out the setting system (def-setting! and set!), starting with these. What are autodefs? These are functions that are always defined, whether or not their respective modules are enabled. However, when their modules are disabled, they are replaced with macros that no-op and don't waste time evaluating their arguments. The old set! function will still work, for a while.
16 lines
417 B
EmacsLisp
16 lines
417 B
EmacsLisp
;;; lang/elm/config.el -*- lexical-binding: t; -*-
|
|
|
|
;; `elm-mode'
|
|
(setq elm-format-on-save t)
|
|
|
|
(after! elm-mode
|
|
(add-hook! 'elm-mode-hook #'(flycheck-mode rainbow-delimiters-mode))
|
|
(set-company-backend! 'elm-mode 'company-elm)
|
|
(set! :repl 'elm-mode #'run-elm-interactive))
|
|
|
|
|
|
(def-package! flycheck-elm
|
|
:when (featurep! :feature syntax-checker)
|
|
:after elm-mode
|
|
:hook (flycheck-mode . flycheck-elm-setup))
|
|
|