mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
Since we enable global-company-mode, explicitly enabling it in the setup for various major modes does nothing. But it does tie the code to company mode, making it harder to try alternatives like corfu.
28 lines
527 B
EmacsLisp
28 lines
527 B
EmacsLisp
;;; siren-php.el --- jimeh's Emacs Siren: php-mode configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for php-mode.
|
|
|
|
;;; Code:
|
|
|
|
(require 'siren-folding)
|
|
(require 'siren-prettier-js)
|
|
(require 'siren-rainbow)
|
|
|
|
(use-package php-mode
|
|
:interpreter "php"
|
|
:mode "\\.php\\'" "\\.inc\\'" "\\.module\\'"
|
|
:hook
|
|
(php-mode . siren-php-mode-setup)
|
|
|
|
:init
|
|
(defun siren-php-mode-setup ()
|
|
(prettier-js-mode)
|
|
(rainbow-mode +1)
|
|
(subword-mode +1)
|
|
(siren-folding)))
|
|
|
|
(provide 'siren-php)
|
|
;;; siren-php.el ends here
|