瀏覽代碼

fix: Avoid solidity line length hightlighting being applied globally

master
Bingen Eguzkitza 2 週之前
父節點
當前提交
6002e060b0
共有 1 個檔案被更改,包括 3 行新增 和 3 行删除
  1. +3
    -3
      lisp/init-solidity.el

+ 3
- 3
lisp/init-solidity.el 查看文件

@@ -38,9 +38,9 @@
;; https://gitlab.haskell.org/ghc/ghc/wikis/emacs
(require 'whitespace)
(defun solidity-custom-line-length ()
(setq whitespace-style '(face lines-tail))
(setq whitespace-line-column 145)
(global-whitespace-mode t))
(setq-local whitespace-style '(face lines-tail))
(setq-local whitespace-line-column 145)
(whitespace-mode 1))

(add-hook 'solidity-mode-hook 'solidity-custom-line-length)


Loading…
取消
儲存