Force requiring final newline in PHP mode

This commit is contained in:
Tom Willemse 2016-10-14 00:58:05 +02:00
parent 216ee6c68f
commit d49cf1d7ff

View file

@ -17,3 +17,13 @@ Enable flycheck in php-mode.
#+BEGIN_SRC emacs-lisp
(add-hook 'php-mode-hook 'flycheck-mode)
#+END_SRC
Reset =require-final-newline= because the default php-mode style
disables it.
#+BEGIN_SRC emacs-lisp
(defun oni:set-require-final-newline ()
(setq require-final-newline t))
(add-hook 'php-mode-hook 'oni:set-require-final-newline)
#+END_SRC