Php mode is an emacs major mode design to work with php. The principal functions that add to emacs are:
Sincerely this functions are very few in comparation with other programming modes of emacs, therefore I go to explain more modes to solved this.
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.
This minor mode allows to check the correct php style with phpcs application. It is a very intersting and util mode because it allows us see in real time the errors in own code and a description to fix it.
Currently I have configurated this mode to check the PSR0, 1 and 2 standards.
Github repository of flymake-phpcs
YASnippet is a template system for Emacs. It allows you to type an abbreviation and automatically expand it into function templates. Bundled language templates includes: C, C++, C#, Perl, Python, Ruby, SQL, LaTeX, HTML, CSS and more. The snippet syntax is inspired from TextMate’s syntax, you can even import most TextMate templates to YASnippet. Watch a demo on YouTube or download a higher resolution version
Yasnippet is a powerful minor emacs mode, is very popular and is a tool to use snippets like creation of classes, functions, use php (or another language) functions with parameters and more things.
To use this mode with PHP we need the php snippets, we’ll found this code in this github repository.
GEBEN is a software package that interfaces Emacs to DBGp protocol with which you can debug running scripts interactive. At this present DBGp protocol are supported in several script languages with help of custom extensions.
Geben is a complete mode to debug PHP code with xdebug.
If you are interested I share my .emacs file here and a installation scripts to my modes.
My first language is the spanish, the reason that I write it in english is I want to learn. Please for any mistake or posible correction write a comment in the post. Thank you.
]]>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.
Because I like try new things and play with them, get away from the simplicity and the “normal” things.
The fact of can use my own text editor, a format like markdown, the hapiness of deploy the blog totally free in sites like Github o Heroku. All that things are the things that have convinced me to change a simple Wordpress blog to anything more complex but more satisfying like Jekyll/Octopress.
My first language is the spanish, the reason that I write it in english is I want to learn. Please for any mistake or posible correction write a comment in the post. Thank you.
]]>This is a test post to try Octopress ]]>