gabrielgio.me @ 60b4299cb90a5b3f6e74ffd0ee0f51a0008fb3cf

 1---
 2layout: post
 3title:  "Compiling emacs from source code on fedora"
 4date:   2019-11-16
 5tags: ['emacs', 'emacs27', 'linux', 'fedora']
 6---
 7
 8Lately I have been using emacs quite heavily, I started using org mode after a friend insistently 
 9telling me to try, got hooked and now I'm addicted on spacemacs+evil mode, very useful, I recommend it!
10I'm compiling emacs because emacs 27, which it is not available on fedora repos yet, has some serious start up 
11performance improvement which I more then welcome when using spacemacs.
12
13But enough talking lets down to the business.
14
15First install the following packages:
16
17{% highlight bash %}
18sudo dnf install git autoconf make gcc texinfo gnutls-devel giflib-devel ncurses-devel libjpeg-turbo-devel giflib-devel gtk3-devel libXpm-devel
19{% endhighlight %}
20
21Then we need to clone the repo from [savannah.gnu.org](http://savannah.gnu.org/projects/emacs/) where is hosted 
22the source code of emacs:
23{% highlight bash %}
24 git clone -b master git://git.sv.gnu.org/emacs.git
25{% endhighlight %}
26
27Navigate to emacs folder that we've just cloned and execute the following steps
28
29{% highlight bash %}
30./autogen.sh
31./configure
32make -j$(nproc)
33sudo make install
34{% endhighlight %}
35
36After that you will have emacs 27 or further running on your machine. To verify the version just run `emacs --version`.
37
38### Bonus content
39For maximum  awesomeness I would suggest using [spacemacs](https://www.spacemacs.org/), 
40tt has a lot of features out of the box. To install:
41
42{% highlight bash %}
43git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
44{% endhighlight %}
45
46