Learn how to turn a vanilla Emacs installation into a powerful PHP editing environment.
“Writing PHP with Emacs” explains which packages to install, how to use and configure them, and how to get the most out of your Emacs PHP editing setup.
Purchase at Leanpub Price: $19.99
Read a free chapter: Checking syntax (and more) with flycheck
My aim is for the book to teach you how to take a brand new Emacs installation and turn it into something tailored just for you.
The planned table of contents for the book looks a little like this. It may change over time depending on feedback.
Important: This book is a work-in-progress. All updates are free of charge to owners of the book.
Part 1 - Essential Packages
- Using php-mode
- First Steps
- Useful shortcuts (for navigation, viewing documentation and editing code)
- Customization - indentation and coding styles
- Customization - documentation lookup
- Customization - Using TAGS files
- Evaluating inline code using php-send-region
- Running the built-in server
- Examining PHP’s configuration
- Using web-mode
- First steps
- Useful shortcuts
- Customization - indentation
- Explanation and examples of all shortcuts
Part 2 - Getting More out of Emacs
- Checking syntax (and more) with flycheck
- Navigating projects using projectile
- Using lsp-mode
- Installing lsp-mode
- Configuring lsp-mode
Part 3 - Recipes
- Setting per-project settings using .dir-locals.el
- Generating HTML quickly with emmet
- Looking up documentation with dash
- Adding a project sidebar using dired-sidebar
- Configuring a Drupal 7 project
- Configuring a Drupal 8 project
- Configuring a Laravel project
- Configuring a Symfony project
- Configuring a WordPress project
- Added “Configuring a Drupal 8 project” chapter.
- Added “Configuring a Laravel project” chapter.
- Added “Configuring a Symfony project” chapter.
- Added “Configuring a Drupal 7 project” chapter.
- Added “Configuring a WordPress project” chapter.
- Added “Setting per-project settings using .dir-locals.el” chapter.
- Added “Adding a project sidebar using dired-sidebar”
- Added “Looking up documentation with dash” chapter.
- Expanded lsp chapter with details on imenu.
- Added information on using Serenata.
- Added initial “Using lsp for intelligent code features” chapter.
- Added “Checking syntax (and more) with flycheck” chapter.
- Added initial version of “Navigating projects using projectile” chapter.
- Added “Generating HTML quickly with emmet” recipe.
- Added initial version of
- Added “Customization - Generating a TAGS file” to php-mode section.
- Added “Viewing PHP’s configuration setup with
php-ini” to php-mode section.
- Added “Running the built-in server” to php-mode section.
- Published initial version of the book. Contains the chapter on
php-modeand weighs in at 2,579 words and 15 pages (in the PDF version).