Przeglądaj źródła

fix: Avoid solidity line length hightlighting being applied globally

master
Bingen Eguzkitza 2 tygodni temu
rodzic
commit
6002e060b0
1 zmienionych plików z 3 dodań i 3 usunięć
  1. +3
    -3
      lisp/init-solidity.el

+ 3
- 3
lisp/init-solidity.el Wyświetl plik

;; https://gitlab.haskell.org/ghc/ghc/wikis/emacs ;; https://gitlab.haskell.org/ghc/ghc/wikis/emacs
(require 'whitespace) (require 'whitespace)
(defun solidity-custom-line-length () (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) (add-hook 'solidity-mode-hook 'solidity-custom-line-length)



Ładowanie…
Anuluj
Zapisz