Force requiring final newline in PHP mode
This commit is contained in:
parent
216ee6c68f
commit
d49cf1d7ff
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue