Emacs personal configuration
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

36 Zeilen
1.1KB

  1. ;;; package --- Solidity mode
  2. ;;; Commentary:
  3. ;;; Code:
  4. (require-package 'solidity-mode)
  5. ;; https://emacs.stackexchange.com/a/17565/12560
  6. (defun solidity-custom-settings ()
  7. (setq indent-tabs-mode nil)
  8. (setq tab-width 4)
  9. (setq c-basic-offset 4))
  10. (add-hook 'solidity-mode-hook 'solidity-custom-settings)
  11. ;; https://github.com/ethereum/emacs-solidity
  12. ;(define-key map (kbd "C-c C-g") 'solidity-estimate-gas-at-point)
  13. (setq solidity-solc-path "/usr/local/bin/solc-static-linux-0.4.24")
  14. (setq solidity-solium-path "/home/bingen/.nvm/versions/node/v9.4.0/bin/solium")
  15. (setq solidity-flycheck-solc-checker-active t)
  16. (setq solidity-flycheck-solium-checker-active t)
  17. (setq flycheck-solidity-solc-addstd-contracts t)
  18. (setq flycheck-solidity-solium-soliumrcfile "/home/bingen/workspace/aragonOS/.soliumrc.json")
  19. (add-hook 'solidity-mode-hook
  20. (lambda ()
  21. (set (make-local-variable 'company-backends)
  22. (append '((company-solidity company-capf company-dabbrev-code))
  23. company-backends))))
  24. (provide 'init-solidity)
  25. ;;; init-solidity.el ends here