From 68146d663a9e2ee2b29539c1994764aeec1f8623 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Wed, 3 Jun 2020 21:31:09 +0900 Subject: [PATCH] Add hardhat config --- emacs.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/emacs.el b/emacs.el index 5b6e02b..f904e1a 100644 --- a/emacs.el +++ b/emacs.el @@ -180,6 +180,7 @@ Otherwize hook it." with-venv nyan-mode diredfl + hardhat editorconfig editorconfig-custom-majormode @@ -580,6 +581,13 @@ THEM are function and its args." ;; mark-ring ;; (equal mark-ring (cl-copy-list mark-ring)) +(when (fboundp 'global-hardhat-mode) + (with-eval-after-load 'hardhat + (defvar hardhat-fullpath-protected-regexps) + (add-to-list 'hardhat-fullpath-protected-regexps + "/.venv/")) + (global-hardhat-mode 1)) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; title and mode-line