12345678910111213141516171819202122232425262728293031323334353637383940 |
- (require 'package)
- (add-to-list 'package-archives
- '("melpa" . "https://melpa.org/packages/"))
- (when (< emacs-major-version 24)
- ;; For important compatibility libraries like cl-lib
- (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
- (package-initialize)
- (custom-set-variables
- ;; custom-set-variables was added by Custom.
- ;; If you edit it by hand, you could mess it up, so be careful.
- ;; Your init file should contain only one such instance.
- ;; If there is more than one, they won't work right.
- '(inhibit-startup-screen t)
- '(package-selected-packages (quote (flycheck use-package))))
- (custom-set-faces
- ;; custom-set-faces was added by Custom.
- ;; If you edit it by hand, you could mess it up, so be careful.
- ;; Your init file should contain only one such instance.
- ;; If there is more than one, they won't work right.
- )
- (use-package flycheck
- :ensure t
- :init (global-flycheck-mode))
- (flycheck-define-checker vhdl-tool
- "A VHDL syntax checker, type checker and linter using VHDL-Tool.
- See URL `http://vhdltool.com'."
- :command ("vhdl-tool" "client" "lint" "--compact" "--stdin" "-f" source
- )
- :standard-input t
- :error-patterns
- ((warning line-start (file-name) ":" line ":" column ":w:" (message) line-end)
- (error line-start (file-name) ":" line ":" column ":e:" (message) line-end))
- :modes (vhdl-mode))
-
- (add-to-list 'flycheck-checkers 'vhdl-tool)
|