From 66a8f80fed0e571590536c5fe499a5a1f8d9e030 Mon Sep 17 00:00:00 2001 From: Rawley <75388349+rawleyfowler@users.noreply.github.com> Date: Sun, 3 Sep 2023 19:03:05 -0600 Subject: [PATCH] Add flycheck --- init.el | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 3f04878..7980cda 100644 --- a/init.el +++ b/init.el @@ -187,6 +187,11 @@ :config (evil-ex-define-cmd "wq" 'save-and-kill-this-buffer)) +(use-package flycheck + :ensure t + :config + (add-hook 'cperl-mode-hook 'flycheck-mode)) + ;; Perl (require 'perltidy) ; Thanks to https://github.com/zakame/perltidy.el (require 'perl-mode) @@ -223,7 +228,14 @@ ;; If there is more than one, they won't work right. '(delete-selection-mode nil) '(package-selected-packages - '(evil-mode ivy-rich counsel dap-mode company yasnippet lsp-ui lsp-metals lsp-mode sbt-mode yaml-mode web-mode tree-sitter-langs spinner smex scala-mode s raku-mode php-mode markdown-mode magit lv json-mode ht flycheck evil dracula-theme dockerfile-mode ctrlf centaur-tabs))) + '(evil-mode ivy-rich counsel dap-mode company yasnippet lsp-ui lsp-metals lsp-mode sbt-mode yaml-mode web-mode tree-sitter-langs spinner smex scala-mode s raku-mode php-mode markdown-mode magit lv json-mode ht flycheck evil dracula-theme dockerfile-mode ctrlf centaur-tabs)) + '(safe-local-variable-values + '((eval setq flycheck-perl-include-path + (add-to-list 'flycheck-perl-include-path + (concat + (expand-file-name + (locate-dominating-file default-directory ".dir-locals.el")) + "lib")))))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful.