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 really get the most out of your Emacs editing experience.Purchase at Leanpub Price: $9.99
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
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 WordPress project
- Configuring a Symfony project
- Configuring a Laravel project
- Configuring a Drupal 7 project
- Configuring a Drupal 8 project
- 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).