Calling this pivotal macro "def-package!" has frequently been a source of confusion. It is a thin wrapper around use-package, and it should be obvious that it is so. For this reason, and to match the naming convention used with other convenience macros/wrappers, it is now use-package!. Also changes def-package-hook! -> use-package-hook! The old macros are now marked obsolete and will be removed when straight integration is merged.
25 lines
598 B
EmacsLisp
25 lines
598 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 #'rainbow-delimiters-mode)
|
|
|
|
(set-company-backend! 'elm-mode 'company-elm)
|
|
(set-repl-handler! 'elm-mode #'run-elm-interactive)
|
|
(set-pretty-symbols! 'elm-mode
|
|
:null "null"
|
|
:true "true" :false "false"
|
|
:int "Int" :str "String"
|
|
:float "Float"
|
|
:bool "Bool"
|
|
|
|
:not "not"
|
|
:and "&&" :or "||"))
|
|
|
|
|
|
(use-package! flycheck-elm
|
|
:when (featurep! :tools flycheck)
|
|
:after elm-mode
|
|
:config (add-to-list 'flycheck-checkers 'elm nil #'eq))
|