<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>www.ogopogo.biz - tips</title><link href="https://www.ogopogo.biz/lang-version.en/" rel="alternate"/><link href="https://www.ogopogo.biz/lang-version.en/feeds/tips.atom.xml" rel="self"/><id>https://www.ogopogo.biz/lang-version.en/</id><updated>2015-03-11T11:06:00-04:00</updated><entry><title>RST tip</title><link href="https://www.ogopogo.biz/lang-version.en/rst-link-en.html" rel="alternate"/><published>2015-03-11T11:06:00-04:00</published><updated>2015-03-11T11:06:00-04:00</updated><author><name>Pierre Bernatchez</name></author><id>tag:www.ogopogo.biz,2015-03-11:/lang-version.en/rst-link-en.html</id><summary type="html">&lt;p class="first last"&gt;RST link fields compatible with pelican web generator&lt;/p&gt;
</summary><content type="html">&lt;p&gt;&lt;strong&gt;ReStructuredText Source Links for Pelican&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A relative link is relative to the directory which contains
the current file where you are inserting the link, so
file links look like this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;Example relative link: &lt;span class="s"&gt;`This is a relative link to previous article &lt;/span&gt;&lt;span class="si"&gt;&amp;lt;{filename}./emacs-tip-en.rst&amp;gt;&lt;/span&gt;&lt;span class="s"&gt;`_&lt;/span&gt;

Example root link: &lt;span class="s"&gt;`This is an absosulte link to previous article &lt;/span&gt;&lt;span class="si"&gt;&amp;lt;{filename}/tips/emacs-tip-en.rst&amp;gt;&lt;/span&gt;&lt;span class="s"&gt;`_&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Example relative link: &lt;a class="reference external" href="https://www.ogopogo.biz/lang-version.en/emacs-tip-en.html"&gt;This is a relative link to previous article&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Example root link: &lt;a class="reference external" href="https://www.ogopogo.biz/lang-version.en/emacs-tip-en.html"&gt;This is an absosulte link to previous article&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Example of a deferred relative link:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="s"&gt;`Deferred emacs tip relative link`_&lt;/span&gt;

&lt;span class="p"&gt; ..&lt;/span&gt; &lt;span class="nt"&gt;_`Deferred emacs tip relative link`:&lt;/span&gt; {filename}./emacs-tip-en.rst
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;a class="reference external" href="https://www.ogopogo.biz/lang-version.en/emacs-tip-en.html"&gt;Deferred emacs tip relative link&lt;/a&gt;&lt;/p&gt;
</content><category term="tips"/><category term="restructuredtext"/><category term="pelican"/><category term="link"/><category term="source"/><category term="relative"/><category term="absolute"/></entry><entry><title>Emacs tip</title><link href="https://www.ogopogo.biz/lang-version.en/emacs-tip-en.html" rel="alternate"/><published>2015-03-11T10:58:00-04:00</published><updated>2015-03-11T10:58:00-04:00</updated><author><name>Pierre Bernatchez</name></author><id>tag:www.ogopogo.biz,2015-03-11:/lang-version.en/emacs-tip-en.html</id><summary type="html">&lt;p class="first last"&gt;Inserting subshell command output into the current buffer&lt;/p&gt;
</summary><content type="html">&lt;p&gt;&lt;strong&gt;Insert From Subshell&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I wanted to insert the current date and time into my current buffer position.&lt;/p&gt;
&lt;p&gt;The key sequence is: '&amp;lt;ctl&amp;gt;u&amp;lt;alt&amp;gt;!' allows you to pull output from a
subshell command.&lt;/p&gt;
&lt;p&gt;So I insert a formatted date like this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;My input: &amp;lt;ctl&amp;gt;u&amp;lt;alt&amp;gt;!date --rfc-3339=seconds&lt;/p&gt;
&lt;p&gt;What I got: 2015-03-11 10:58:55-05:00 (with a newline at the end)&lt;/p&gt;
&lt;/blockquote&gt;
</content><category term="tips"/><category term="emacs"/><category term="editor"/></entry></feed>