aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-09-18 17:32:39 -0700
committerGravatar Tom Willemse2026-09-18 17:32:39 -0700
commitafd80e2a1691b24ddba52aeb4e6bcee8337b3145 (patch)
tree14aeaf59f61d075ce9a6d7093cc0fc2fac3a493d
parente69a695fd585732b73e51802d3ab9784d97df09a (diff)
downloadnew-dotfiles-afd80e2a1691b24ddba52aeb4e6bcee8337b3145.tar.gz
new-dotfiles-afd80e2a1691b24ddba52aeb4e6bcee8337b3145.zip
emacs: Add social api directory settings
-rw-r--r--emacs/.emacs.d/init.org33
1 files changed, 33 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 976721a..bed40b1 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -1281,6 +1281,39 @@ Now the pull app.
'pull-app))
#+end_src
+social api:
+
+#+begin_src emacs-lisp
+ (use-package files
+ :ensure nil
+ :config
+ (dir-locals-set-class-variables
+ 'social-api
+ '((nil . ((grep-find-ignored-directories . (".git" "vendor" "cdk.out" "storage" "punt/tmp" "chanced/tmp"))
+ (eglot-workspace-configuration
+ . (:language_server_phpstan (:enabled t
+ :mem_limit "2G"
+ :bin "chanced/vendor/bin/phpstan")))))
+ (php-mode . ((fill-column . 80)
+ (eglot-server-programs . (((php-mode phps-mode php-ts-mode)
+ "localhost" 4564)))
+ (php-project-root . git)
+ (phpstan-executable . (root . "../chanced-scripts/phpstan"))
+ (phpstan-config-file . "/app/chanced/phpstan.neon")
+ (phpstan-memory-limit . "4G")
+ (phpstan-level . 9)
+ (eval . (setq-local flycheck-phpstan-executable (expand-file-name "../chanced-scripts/phpstan" (project-root (project-current)))))
+ (php-ts-mode-php-executable . "docker exec -it chanced-backend php artisan tinker")))
+ (typescript-mode . ((typescript-indent-level . 2)))
+ ("punt"
+ . ((php-mode . ((phpstan-config-file . "/app/punt/phpstan.neon")))))
+ ("filament"
+ . ((php-mode . ((phpstan-config-file . "/app/filament/phpstan.neon")))))))
+ (dir-locals-set-directory-class
+ (expand-file-name "~/code/diamond-interactive/social-api")
+ 'social-api))
+#+end_src
+
* Eglot
Set up a server program for Eglot for org-mode.