dotfiles/emacs/.emacs.d/init/oni-php-mode-init.el

19 lines
494 B
EmacsLisp

(eval-when-compile (require 'company))
(add-hook 'php-mode-hook 'electric-pair-local-mode)
(add-hook 'php-mode-hook 'electric-indent-local-mode)
(add-hook 'php-mode-hook 'flycheck-mode)
(defun oni:set-require-final-newline ()
(setq require-final-newline t))
(add-hook 'php-mode-hook 'oni:set-require-final-newline)
(add-hook 'php-mode-hook 'company-mode)
(with-eval-after-load 'company
(add-to-list 'company-backends 'company-ac-php-backend))
(add-hook 'php-mode-hook 'ggtags-mode)