Skip to content

Commit 4f55f10

Browse files
committed
Remove set require-final-newline variable from c-add-style clause
GitHub-Issue: #424 The setting of require-final-newline is useful, but in CC-Mode it is not generally overwritten. These can also be set in Editorconfig or .dir-locals.el.
1 parent e9e1b58 commit 4f55f10

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

php-mode.el

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,6 @@ but only if the setting is enabled"
682682
(indent-tabs-mode . nil)
683683
(tab-width . ,(default-value 'tab-width))
684684
(fill-column . ,(default-value 'fill-column))
685-
(require-final-newline . ,(default-value 'require-final-newline))
686685
(show-trailing-whitespace . ,(default-value 'show-trailing-whitespace))
687686
(php-style-delete-trailing-whitespace . nil)))
688687

@@ -736,8 +735,7 @@ but only if the setting is enabled"
736735
'("php"
737736
(c-offsets-alist . ((statement-cont . php-lineup-hanging-semicolon)))
738737
(c-indent-comments-syntactically-p . t)
739-
(fill-column . 78)
740-
(require-final-newline . t)))
738+
(fill-column . 78)))
741739

742740
(defun php-enable-symfony2-coding-style ()
743741
"Make php-mode use coding styles that are preferable for working with Symfony2."
@@ -750,7 +748,6 @@ but only if the setting is enabled"
750748
(c-offsets-alist . ((statement-cont . +)))
751749
(c-indent-comments-syntactically-p . t)
752750
(fill-column . 78)
753-
(require-final-newline . t)
754751
(show-trailing-whitespace . t)
755752
(php-style-delete-trailing-whitespace . t)))
756753

0 commit comments

Comments
 (0)