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

20 lines
494 B
EmacsLisp
Raw Normal View History

2018-06-19 19:40:09 +02:00
(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)