+ :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.
28 lines
867 B
EmacsLisp
28 lines
867 B
EmacsLisp
;;; lang/solidity/config.el -*- lexical-binding: t; -*-
|
|
|
|
;;
|
|
;; Plugins
|
|
;;
|
|
|
|
;; `solidity-mode'
|
|
(setq solidity-comment-style 'slash)
|
|
|
|
|
|
(def-package! solidity-flycheck ; included with solidity-mode
|
|
:when (featurep! :feature syntax-checker)
|
|
:after solidity-mode
|
|
:init (add-hook 'solidity-mode-hook #'flycheck-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)))
|
|
|
|
|
|
(def-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))
|