Skip to content

Commit 702a285

Browse files
committed
Update php-mode Commentary
1 parent cd76075 commit 702a285

File tree

1 file changed

+15
-22
lines changed

1 file changed

+15
-22
lines changed

php-mode.el

+15-22
Original file line numberDiff line numberDiff line change
@@ -34,32 +34,25 @@
3434

3535
;;; Commentary:
3636

37-
;; PHP Mode is a major mode for editing PHP source code. It's an
38-
;; extension of C mode; thus it inherits all C mode's navigation
39-
;; functionality. But it colors according to the PHP grammar and
40-
;; indents according to the PEAR coding guidelines. It also includes
41-
;; a couple handy IDE-type features such as documentation search and a
42-
;; source and class browser.
37+
;; PHP Mode is a major mode for editing PHP script. It's an extension
38+
;; of CC mode; thus it inherits all C mode's navigation functionality.
39+
;; But it colors according to the PHP syntax and indents according to the
40+
;; PSR-2 coding guidelines. It also includes a couple handy IDE-type
41+
;; features such as documentation search and a source and class browser.
4342

44-
;; ## Usage
43+
;; Please read the manual for setting items compatible with CC Mode.
44+
;; https://www.gnu.org/software/emacs/manual/html_mono/ccmode.html
4545

46-
;; Put this file in your Emacs Lisp path (eg. site-lisp) and add to
47-
;; your .emacs file:
46+
;; This mode is designed for PHP scripts consisting of a single <?php block.
47+
;; We recommend the introduction of Web Mode for HTML and Blade templates combined with PHP.
48+
;; http://web-mode.org/
4849

49-
;; (require 'php-mode)
50+
;; Modern PHP Mode can be set on a project basis by .dir-locals.el.
51+
;; Please read php-project.el for details of directory local variables.
5052

51-
;; To use abbrev-mode, add lines like this:
52-
53-
;; (add-hook 'php-mode-hook
54-
;; '(lambda () (define-abbrev php-mode-abbrev-table "ex" "extends")))
55-
56-
;; To make php-mode compatible with html-mode, see http://php-mode.sf.net
57-
58-
;; Many options available under Help:Customize
59-
;; Options specific to php-mode are in
60-
;; Programming/Languages/PHP
61-
;; Since it inherits much functionality from c-mode, look there too
62-
;; Programming/Languages/C
53+
;; If you are using a package manager, you do not need (require 'php-mode) in
54+
;; your ~/.emacs.d/init.el. Read the README for installation instructions.
55+
;; https://github.com/emacs-php/php-mode
6356

6457
;;; Code:
6558

0 commit comments

Comments
 (0)