mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
All siren modules lazy-load if they can, so there's no need to lazy-require a siren module. Also this avoids the annoyance of the first time you use a feature it triggers a package install from melpa. All such things should happen as part of Emacs startup.
29 lines
656 B
EmacsLisp
29 lines
656 B
EmacsLisp
;;; siren-php.el --- jimeh's Emacs Siren: php-mode configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for php-mode.
|
|
|
|
;;; Code:
|
|
|
|
(require 'siren-programming)
|
|
(require 'siren-rainbow)
|
|
|
|
(use-package php-mode
|
|
:config
|
|
(defun siren-php-mode-defaults ()
|
|
(siren-prog-mode-defaults)
|
|
(rainbow-mode +1)
|
|
(company-mode +1)
|
|
(subword-mode +1)
|
|
(highlight-indentation-current-column-mode)
|
|
(hs-minor-mode 1)
|
|
(hideshowvis-enable))
|
|
|
|
(setq siren-php-mode-hook 'siren-php-mode-defaults)
|
|
(add-hook 'php-mode-hook (lambda ()
|
|
(run-hooks 'siren-php-mode-hook))))
|
|
|
|
(provide 'siren-php)
|
|
;;; siren-php.el ends here
|