mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
In the interest of slimming down Doom's core (as we near v3), I've deprecated these macros. They doesn't really need to exist. Sure, the alternatives aren't as ergonomic or elegant, but they're good enough that we don't need these trivial wrappers. Their local uses have been refactored out as well.
24 lines
946 B
EmacsLisp
24 lines
946 B
EmacsLisp
;;; lang/solidity/config.el -*- lexical-binding: t; -*-
|
|
|
|
;;
|
|
;;; Packages
|
|
|
|
(after! solidity-mode
|
|
(setq solidity-comment-style 'slash)
|
|
(set-docsets! 'solidity-mode "Solidity")
|
|
(set-company-backend! 'solidity-mode 'company-solidity)
|
|
(set-formatter! 'prettier-solidity '(npx "prettier" "--stdin-filepath" filepath "--parser=solidity") :modes '(solidity-mode))
|
|
|
|
(use-package! solidity-flycheck ; included with solidity-mode
|
|
:when (modulep! :checkers syntax -flymake)
|
|
: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 (modulep! :completion company)
|
|
:config (cl-callf2 delq 'company-solidity company-backends)))
|