diff --git a/oni/home/config/rincewind.scm b/oni/home/config/rincewind.scm index a816639..4537889 100644 --- a/oni/home/config/rincewind.scm +++ b/oni/home/config/rincewind.scm @@ -195,7 +195,8 @@ emacs-oni-embrace emacs-oni-yaml emacs-oni-python - emacs-oni-git-commit)) + emacs-oni-git-commit + emacs-oni-php)) #:use-module ((oni packages hlwm-run-or-raise) #:select (hlwm-run-or-raise)) #:use-module ((oni packages inbox-size) @@ -324,6 +325,7 @@ emacs-oni-python emacs-nginx-mode emacs-oni-git-commit + emacs-oni-php tree-sitter-bash tree-sitter-scheme diff --git a/oni/packages/emacs-config.scm b/oni/packages/emacs-config.scm index 1081351..a11b574 100644 --- a/oni/packages/emacs-config.scm +++ b/oni/packages/emacs-config.scm @@ -916,3 +916,27 @@ Emacs"))) emacs-yaml-pro)) (synopsis "My configuration for yaml-mode.") (description "This package provides my configuration for editing Yaml files."))) + +(define-public emacs-oni-php + (package + (inherit emacs-oni-config) + (name "emacs-oni-php") + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir-oni-php + (λ _ (chdir "oni-php")))) + #:include '("\\.el$" "^snippets\\/"))) + (propagated-inputs + (list emacs-php-mode + emacs-oni-yasnippet + emacs-oni-flycheck + emacs-oni-company + emacs-oni-hydra + emacs-ggtags + emacs-fic-mode + emacs-ac-php + ;; Actually a dependency of emacs-ac-php for using company-php. + emacs-xcscope)) + (synopsis "My configuration for php-mode.") + (description "This package provides my configuration for editing PHP files.")))