doomemacs/modules/lang/solidity/config.el
Henrik Lissner 76cacb5bfe
💥 Rename def-package! -> use-package!
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.
2019-07-23 12:50:45 +02:00

26 lines
802 B
EmacsLisp

;;; lang/solidity/config.el -*- lexical-binding: t; -*-
;;
;; Packages
;; `solidity-mode'
(setq solidity-comment-style 'slash)
(use-package! solidity-flycheck ; included with solidity-mode
:when (featurep! :tools flycheck)
:after solidity-mode
:config
(setq flycheck-solidity-solc-addstd-contracts t)
(when (funcall flycheck-executable-find solidity-solc-path)
(add-to-list 'flycheck-checkers 'solidity-checker nil #'eq))
(when (funcall flycheck-executable-find solidity-solium-path)
(add-to-list 'flycheck-checkers 'solium-checker nil #'eq)))
(use-package! company-solidity
:when (featurep! :completion company)
:after solidity-mode
:config
(setq company-backends (delq 'company-solidity company-backends))
(set-company-backend! 'solidity-mode 'company-solidity))