Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
387 lines (186 sloc) 9.71 KB
<!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>MoiDev</title>
<meta name="author" content="Moises Gallego">
<meta name="description" content="php-mode Php mode is an emacs major mode design to work with php. The principal functions that add to emacs are: Syntax hightlighting
PHP comments &hellip;">
<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="http://mgallego.github.io">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<link href="/atom.xml" rel="alternate" title="MoiDev" type="application/atom+xml">
<script src="/javascripts/modernizr-2.0.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>!window.jQuery && document.write(unescape('%3Cscript src="./javascripts/lib/jquery.min.js"%3E%3C/script%3E'))</script>
<script src="/javascripts/octopress.js" type="text/javascript"></script>
<!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
</head>
<body >
<header role="banner"><hgroup>
<h1><a href="/">MoiDev</a></h1>
<h2>Another blog about software development</h2>
</hgroup>
</header>
<nav role="navigation"><ul class="subscription" data-subscription="rss">
<li><a href="/atom.xml" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
</ul>
<form action="http://google.com/search" method="get">
<fieldset role="search">
<input type="hidden" name="q" value="site:mgallego.github.io" />
<input class="search" type="text" name="q" results="0" placeholder="Search"/>
</fieldset>
</form>
<ul class="main-navigation">
<li><a href="/">Blog</a></li>
<li><a href="/blog/archives">Archives</a></li>
</ul>
</nav>
<div id="main">
<div id="content">
<div class="blog-index">
<article>
<header>
<h1 class="entry-title"><a href="/blog/how-to-use-emacs-to-work-with-php/">How to Use Emacs to Work With PHP</a></h1>
<p class="meta">
<time datetime="2012-09-23T20:36:00+02:00" pubdate data-updated="true">Sep 23<span>rd</span>, 2012</time>
</p>
</header>
<div class="entry-content"><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>
<ul>
<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>
</ul>
<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="https://github.com/ejmr/php-mode">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>
</div>
<footer>
<a rel="full-article" href="/blog/how-to-use-emacs-to-work-with-php/">Read on &rarr;</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/moving-to-jekyll-slash-octopress-blogging-like-a-hacker/">Moving to Jekyll/Octopress: Blogging Like a Hacker</a></h1>
<p class="meta">
<time datetime="2012-09-22T20:32:00+02:00" pubdate data-updated="true">Sep 22<span>nd</span>, 2012</time>
</p>
</header>
<div class="entry-content"><p>The idea came when I read the post <a href="http://batsov.com/articles/2011/11/11/blogging-like-a-hacker-evolution/"><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="https://github.com/mojombo/jekyll"><strong>Jekyll</strong></a> and a framework to use it called <a href="http://octopress.org/"><strong>Octopress</strong></a>.</p></p>
<h2>Jekyll</h2>
<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>
<h2>Octopress</h2>
<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>
</div>
<footer>
<a rel="full-article" href="/blog/moving-to-jekyll-slash-octopress-blogging-like-a-hacker/">Read on &rarr;</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/hello-world/">Hello World</a></h1>
<p class="meta">
<time datetime="2012-09-22T20:21:00+02:00" pubdate data-updated="true">Sep 22<span>nd</span>, 2012</time>
</p>
</header>
<div class="entry-content"><h2>Wello World</h2>
<p>This is a test post to try <a href="http://octopress.org/">Octopress</a>
</div>
</article>
<div class="pagination">
<a href="/blog/archives">Blog Archives</a>
</div>
</div>
<aside class="sidebar">
<section>
<h1>Recent Posts</h1>
<ul id="recent_posts">
<li class="post">
<a href="/blog/how-to-use-emacs-to-work-with-php/">How to Use Emacs to Work With PHP</a>
</li>
<li class="post">
<a href="/blog/moving-to-jekyll-slash-octopress-blogging-like-a-hacker/">Moving to Jekyll/Octopress: Blogging Like a Hacker</a>
</li>
<li class="post">
<a href="/blog/hello-world/">Hello World</a>
</li>
</ul>
</section>
<section>
<h1>GitHub Repos</h1>
<ul id="gh_repos">
<li class="loading">Status updating&#8230;</li>
</ul>
<a href="https://github.com/mgallego">@mgallego</a> on GitHub
<script type="text/javascript">
$(document).ready(function(){
if (!window.jXHR){
var jxhr = document.createElement('script');
jxhr.type = 'text/javascript';
jxhr.src = '/javascripts/libs/jXHR.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(jxhr, s);
}
github.showRepos({
user: 'mgallego',
count: 0,
skip_forks: true,
target: '#gh_repos'
});
});
</script>
<script src="/javascripts/github.js" type="text/javascript"> </script>
</section>
<section class="googleplus">
<h1>
<a href="https://plus.google.com/108597469770168389404?rel=author">
<img src="http://www.google.com/images/icons/ui/gprofile_button-32.png" width="32" height="32">
Google+
</a>
</h1>
</section>
</aside>
</div>
</div>
<footer role="contentinfo"><p>
Copyright &copy; 2013 - Moises Gallego -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
</footer>
<script type="text/javascript">
var disqus_shortname = 'moidev';
var disqus_script = 'count.js';
(function () {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/' + disqus_script;
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
}());
</script>
<script type="text/javascript">
(function(){
var twitterWidgets = document.createElement('script');
twitterWidgets.type = 'text/javascript';
twitterWidgets.async = true;
twitterWidgets.src = 'http://platform.twitter.com/widgets.js';
document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
})();
</script>
</body>
</html>