Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
270 lines (99 sloc) 8.82 KB
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="">
<link href="" rel="self"/>
<link href=""/>
<name><![CDATA[Moises Gallego]]></name>
<generator uri="">Octopress</generator>
<title type="html"><![CDATA[How to Use Emacs to Work With PHP]]></title>
<link href=""/>
<content type="html"><![CDATA[<h2>php-mode</h2>
<p>Php mode is an emacs major mode design to work with php. The principal functions that add to emacs are:</p>
<li>Syntax hightlighting</li>
<li>PHP comments</li>
<li>Search in PHP documentation</li>
<li>Browse the PHP online manual</li>
<li>Movements between statements</li>
<p>Sincerely this functions are very few in comparation with other programming modes of emacs, therefore I go to explain
more modes to solved this.</p>
<p><a href="">php mode in github</a></p>
<h2>flymake-phpcs (PHP_CodeSniffer)</h2>
<blockquote><p>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.</p></blockquote>
<!-- more -->
<p>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.</p>
<p>Currently I have configurated this mode to check the PSR0, 1 and 2 standards.</p>
<p><a href="">Github repository of flymake-phpcs</a></p>
<p><img alt="CodeSniffer" src=""/></p>
<blockquote><p>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</p></blockquote>
<p><a href="">Yasnippet</a> 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.</p>
<p>To use this mode with PHP we need the php snippets, we’ll found this code in <a href="">this github repository</a>.
<img alt="YAsnippet" src=""/></p>
<blockquote><p>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.</p></blockquote>
<p><a href="">Geben</a> is a complete mode to debug PHP code with xdebug.</p>
<p><img alt="Geben" src=""/></p>
<h2>Another useful modes to work with PHP</h2>
<li><a href=""><strong>Autocomplete</strong></a> Autocomplete text.</li>
<li><a href=""><strong>sf-el</strong></a> Mode to simplify the use of Symfony2 (created by me and free to colaborate ;) )</li>
<li><a href=""><strong>Fill column indicator</strong></a> Show a vertical line in the maximun column. Important if you follow the PSR standards with flymake</li>
<p>If you are interested I share my .emacs file <a href="">here</a> and a installation scripts to my modes.</p>
<h4>About my English</h4>
<p>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.</p>
<title type="html"><![CDATA[Moving to Jekyll/Octopress: Blogging Like a Hacker]]></title>
<link href=""/>
<content type="html"><![CDATA[<p>The idea came when I read the post <a href=""><strong>Blogging like a hacker: Evolution</strong></a> 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 <a href=""><strong>Jekyll</strong></a> and a framework to use it called <a href=""><strong>Octopress</strong></a>.</p></p>
<blockquote><p>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.</p></blockquote>
<p>Jekyll is a ruby software created by ”<strong>mojombo</strong>” (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.</p>
<blockquote><p>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.</p></blockquote>
<p>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.</p>
<p>With both we can make blogs like this without problem and in a small time.</p>
<!-- more -->
<p>Because I like try new things and play with them, get away from the simplicity and the “normal” things.</p>
<p>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.</p>
<h2>What are the advantages?</h2>
<li>Free storage in sites like Github or Heroku.</li>
<li>Use Markdown to write the posts.</li>
<li>Plugins (Twitter, facebook, analytics, Google Plus, disqus, pinboard, delicious).</li>
<li>Easy to change the theme with Compass and Sass.</li>
<li>Syntax highlighting.</li>
<li>Semantic HTML5 template.</li>
<li>Mobile responsive design.</li>
<h4>About my English</h4>
<p>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.</p>
<title type="html"><![CDATA[Hello World]]></title>
<link href=""/>
<content type="html"><![CDATA[<h2>Wello World</h2>
<p>This is a test post to try <a href="">Octopress</a>
Something went wrong with that request. Please try again.