Another blog about software development

How to Use Emacs to Work With PHP


Php mode is an emacs major mode design to work with php. The principal functions that add to emacs are:

  • Syntax hightlighting
  • PHP comments
  • Search in PHP documentation
  • Browse the PHP online manual
  • Movements between statements

Sincerely this functions are very few in comparation with other programming modes of emacs, therefore I go to explain more modes to solved this.

php mode in github

flymake-phpcs (PHP_CodeSniffer)

Flymake mode is an Emacs mode that allows you to run continuous syntax checks against the current buffer “While U Type”. PHP_CodeSniffer is a static analysis tool for PHP that can be configured to produce a wide range of warnings and errors according to various customizable coding standards. Emacs-flymake-phpcs glues the two together, giving you continuous static analysis as you edit.

Moving to Jekyll/Octopress: Blogging Like a Hacker

The idea came when I read the post Blogging like a hacker: Evolution I start reading the article thinking that talk about how integrate emacs with wordpress, but really the article was more interesting, talk about a framework to create blogs called Jekyll and a framework to use it called Octopress.


Jekyll is a simple, blog aware, static site generator. It takes a template directory (representing the raw form of a website), runs it through Textile or Markdown and Liquid converters, and spits out a complete, static website suitable for serving with Apache or your favorite web server. This is also the engine behind GitHub Pages, which you can use to host your project’s page or blog right here from GitHub.

Jekyll is a ruby software created by ”mojombo” (one of the founders of github) and te function is create statics pages using text in markdown or another format. Perhaps this could be very dificult but really is very simple, with only follow the steps of the Octopress documentation.


Octopress is a framework designed by Brandon Mathis for Jekyll, the blog aware static site generator powering Github Pages. To start blogging with Jekyll, you have to write your own HTML templates, CSS, Javascripts and set up your configuration. But with Octopress All of that is already taken care of. Simply clone or fork Octopress, install dependencies and the theme, and you’re set.

Octopress is a framework in Ruby too, that simplify the task of create and publish a blog, and add functionality, plugins and a good design to start.

With both we can make blogs like this without problem and in a small time.