Skip to content

An Emacs package to help managing multiple coding styles in php-mode.

Notifications You must be signed in to change notification settings

bystrano/php-styles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

php-styles.el

PHP mode does not provide an easy way to switch to a different coding style, which makes it a pain to edit multiple files in different types of projects in a single Emacs session. This package provide some helper functions to do it.

Usage

To enable this package, add the php-styles-php-mode-config function to php-mode-hook :

(add-hook 'php-mode-hook 'php-styles-mode-config)

You will then be able to use the php-switch-to-psr-2, php-styles-switch-to-wordpress and php-styles-switch-to-spip commands.

We will try to guess the coding style by searching for a common file. You can disable this feature using the php-style-guess customizable variable.

About

An Emacs package to help managing multiple coding styles in php-mode.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published