<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Sample Stat</title>
        <description>Blog about R statistic and Linux tips.</description>
        <link>https://www.samplestat.org/</link>
        <atom:link href="https://www.samplestat.org/feed.jekyll.xml" rel="self" type="application/rss+xml"/>
        <pubDate>Thu, 18 Jun 2026 01:27:55 +0200</pubDate>
        <lastBuildDate>Thu, 18 Jun 2026 01:27:55 +0200</lastBuildDate>
        <generator>Jekyll v3.10.0</generator>
        
            <item>
                <title>&lt;code&gt;.emacs&lt;/code&gt; in org mode</title>
                <description>&lt;p&gt;
Usually, when you are using Emacs, all your favourite shortcut and
others Emacs characteristic are in the &lt;code&gt;.emacs&lt;/code&gt; file. However, to have a
better &lt;code&gt;.emacs&lt;/code&gt; organisation, I suggest you to use the org-mode with
your &lt;code&gt;.emacs&lt;/code&gt;. Like this, you can organise very easily your &lt;code&gt;.emacs&lt;/code&gt; and
put categories 
&lt;/p&gt;

&lt;p&gt;
To doing so you will needed to put in your &lt;code&gt;.emacs&lt;/code&gt; file a simple link to
the org file with every Emacs customisation. Thus, the &lt;code&gt;.emacs&lt;/code&gt; should
be like this:
&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-cl&quot; data-lang=&quot;cl&quot;&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;package-initialize&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;&apos;org&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;org-babel-load-file&lt;/span&gt;
 &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;expand-file-name&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;emacs-init.org&quot;&lt;/span&gt;
                   &lt;span class=&quot;s&quot;&gt;&quot;~/.&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;
And then you will have another file here name &lt;code&gt;emacs-init.org&lt;/code&gt; which
should start like this for example:
&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-cl&quot; data-lang=&quot;cl&quot;&gt;&lt;span class=&quot;nb&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;Init&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;**&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;Packages&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;others&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;#+&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;BEGIN_SRC&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;emacs-lisp&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;&apos;package&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;add-to-list&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;&apos;package-archives&lt;/span&gt;
           &lt;span class=&quot;o&quot;&gt;&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;melpa-stable&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;https://stable.melpa.org/packages/&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;t&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;;(add-to-list &apos;package-archives&lt;/span&gt;
 &lt;span class=&quot;c1&quot;&gt;;            &apos;(&quot;marmalade&quot; . &quot;http://marmalade-repo.org/packages/&quot;) t)&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;add-to-list&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;&apos;package-archives&lt;/span&gt;
	     &lt;span class=&quot;o&quot;&gt;&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;melpa&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;http://melpa.org/packages/&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;t&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;add-to-list&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;&apos;package-archives&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;org&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;http://orgmode.org/elpa/&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;t&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;package-initialize&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;#+&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;END_SRC&lt;/span&gt;

&lt;span class=&quot;nv&quot;&gt;**&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;LaTeX&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;#+&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;BEGIN_SRC&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;emacs-lisp&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;load&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;auctex.el&quot;&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;nil&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;t&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;t&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;;(load &quot;preview-latex.el&quot; nil t t)&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;pdf-tools-install&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;o&quot;&gt;...&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;#+&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;END_SRC&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;
As you can see, you simply need to put your &lt;code&gt;emacs-lisp&lt;/code&gt; code using
the &lt;code&gt;#+BEGIN_SRC&lt;/code&gt; and &lt;code&gt;#+END_SRC&lt;/code&gt; tags.
&lt;/p&gt;
</description>
                <pubDate>Wed, 26 Apr 2017 02:00:00 +0200</pubDate>
                <link>https://www.samplestat.org/emacs-in-org-mode-emacs/</link>
                <guid isPermaLink="true">https://www.samplestat.org/emacs-in-org-mode-emacs/</guid>
                
                <category>blog</category>
                
                <category>Emacs</category>
                
                
            </item>
        
            <item>
                <title>Emacs + ESS = loving R</title>
                <description>&lt;p&gt;
Since my second year of university I have studied Statistic with R on Windows using
the basic text editor from the R GUI console. I was happy with it for a
couple of years. However, when I start coding more complex and longer
function, it was a nightmare to handle human issues, specially
parentheses tracking. A professor told me that they were some programs
specific to code in R, such as &lt;a href=&quot;http://nbcgib.uesc.br/lec/software/editores/tinn-r/en&quot;&gt;Tinn-R&lt;/a&gt; or the well known &lt;a href=&quot;https://www.rstudio.com/&quot;&gt;R-Studio&lt;/a&gt;. I
also found that Notepad++ as a plugin (&lt;a href=&quot;https://sourceforge.net/projects/npptor/&quot;&gt;nppToR&lt;/a&gt;) to link the text
editor to R. However, after trying R-Studio and Notepad++, I was not
very happy with them. I always did not like the multi-windows
design from R-Studio, and Notepad++ was only a better way to use
the script function from the R GUI. It was not fully integrated
R. Finally, my professor told me about Emacs, and how it was working
with R. I first try it with Windows, using the very good
&lt;a href=&quot;http://vgoulet.act.ulaval.ca/en/emacs/&quot;&gt;Emacs version from Vincent Goulet&lt;/a&gt;. It was exactly what I was looking for. A software
that can interact with R without a lot of windows, and well integrated
with R. Few years later, I jump to Linux using first Manjaro (an
ArchLinux distribution), and after Xubuntu to keep the very good XFCE
desktop environment. 
&lt;/p&gt;


&lt;div class=&quot;figure&quot;&gt;
&lt;p&gt;&lt;a href=&quot;/assets/images/screenshoot-emacs.png&quot; width=&quot;800&quot;&gt;&lt;img src=&quot;/assets/images/screenshoot-emacs.png&quot; alt=&quot;screenshoot-emacs.png&quot; width=&quot;800&quot; /&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;/div&gt;








&lt;p&gt;
For the reader who don&apos;t know anything about &lt;a href=&quot;https://www.gnu.org/software/emacs/&quot;&gt;Emacs&lt;/a&gt; this is a free
software from the GNU licence which can speak R using &lt;a href=&quot;https://ess.r-project.org/&quot;&gt;ESS&lt;/a&gt; package (for Emacs
Speaks Statistic). But Emacs did not speak only statistic, this is an
incredible tool that can speak multiple computers languages, read your
email and much more. In fact, I am writing this blog article using
Emacs through  &lt;a href=&quot;http://orgmode.org/&quot;&gt;Org-mode&lt;/a&gt;. Emacs is a cross-platform program which can
be used with Windows or Mac Os, and also Linux.
&lt;/p&gt;

&lt;p&gt;
I will put more articles in this blog describing how I am using Emacs
with R, and for blogging, and hopefully you will consider it to use
for your own projects.
&lt;/p&gt;
</description>
                <pubDate>Fri, 30 Dec 2016 01:00:00 +0100</pubDate>
                <link>https://www.samplestat.org/emacs-ess-loving-r/</link>
                <guid isPermaLink="true">https://www.samplestat.org/emacs-ess-loving-r/</guid>
                
                <category>R</category>
                
                <category>Emacs</category>
                
                
            </item>
        
    </channel>
</rss>
