mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
- Switch from highlight-indentation package to highlight-indent-guides. - Activate visual indentation in a prog-mode hook, rather than doing within each individual major mode. It was already done within all major modes based on prog-mode anyway. - Add new siren-display-indetation module and function as a central way to enable visual indetation guides. This makes switching the underlying package at some point in the future much easier.
28 lines
524 B
EmacsLisp
28 lines
524 B
EmacsLisp
;;; siren-php.el --- jimeh's Emacs Siren: php-mode configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for php-mode.
|
|
|
|
;;; Code:
|
|
|
|
(require 'siren-folding)
|
|
(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 ()
|
|
(rainbow-mode +1)
|
|
(company-mode +1)
|
|
(subword-mode +1)
|
|
(hs-minor-mode 1)
|
|
(hideshowvis-enable)))
|
|
|
|
(provide 'siren-php)
|
|
;;; siren-php.el ends here
|