Skip to content

Instantly share code, notes, and snippets.

@sergeyklay
Last active March 29, 2020 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergeyklay/99311a8e710f1476f4af9baf12efa63c to your computer and use it in GitHub Desktop.
Save sergeyklay/99311a8e710f1476f4af9baf12efa63c to your computer and use it in GitHub Desktop.
.dir-local.el for PHP-extension
;;; Directory Local Variables
;; For more information see (info "(emacs) Directory Variables")
((nil . ((indent-tabs-mode . t)
(fill-column . 80)))
(c-mode . ((c-file-style . "k&r")
(tab-width . 4)
(c-basic-offset . 4)
(flycheck-checker . c/c++-gcc)
(flycheck-disabled-checkers c/c++-clang)
(flycheck-gcc-language-standard . "gnu99")
(eval .
(setq-local
flycheck-gcc-include-path
(list
(projectile-project-root)
(expand-file-name "~/src/php/7.3.0")
(expand-file-name "~/src/php/7.3.0/main")
(expand-file-name "~/src/php/7.3.0/Zend")
(expand-file-name "~/src/php/7.3.0/TSRM")
(expand-file-name "~/src/php/7.3.0/sapi")
(expand-file-name "~/src/php/7.3.0/ext")))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment