Changeset 74bc208 in dotfiles


Ignore:
Timestamp:
Nov 14, 2022, 5:13:58 PM (2 years ago)
Author:
w96k <w96k@…>
Branches:
master
Children:
86d2deb
Parents:
a649060
Message:

Fix flycheck

File:
1 edited

Legend:

Unmodified
Added
Removed
  • emacs/.emacs.d/.emacs-config.org

    ra649060 r74bc208  
    591591*** Flycheck
    592592#+BEGIN_SRC emacs-lisp :tangle init.el
    593   (require 'psalm)
     593  ;; (require 'psalm)
    594594
    595595  (when (package-loaded? "flycheck")
     
    607607
    608608    (flycheck-define-checker php-phanclient
     609      "Phan"
    609610      :command ("phan_client" "-l" source-original "-f" source)
    610611      :error-patterns
    611612      ((warning line-start (or "Parse" "Fatal" "syntax" "Phan") " error" (any ":" ",") " " (message) " in " (file-name) " on line " line line-end))
    612613      :modes (php-mode php+-mode))
     614
     615    (add-to-list 'flycheck-checkers 'php-phanclient)
     616
    613617    (flycheck-add-next-checker 'php '(warning . php-phanclient))
    614 
    615     (add-to-list 'flycheck-checkers 'php-phanclient)
    616 
    617618
    618619    (add-hook 'prog-mode-hook 'flycheck-mode))
Note: See TracChangeset for help on using the changeset viewer.