gabrielgio.me @ ff394ae92c8651c3e6ab46e6bdb49b4dc2e363ff

 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 de source code from [savannah.gnu.org](http://savannah.gnu.org/projects/emacs/)
22{% highlight bash %}
23 git clone -b master git://git.sv.gnu.org/emacs.git
24{% endhighlight %}
25
26Navigate to emacs folder that we've just cloned and execute the following steps
27
28{% highlight bash %}
29./autogen.sh
30./configure
31make -j$(nproc)
32sudo make install
33{% endhighlight %}
34
35After that you will have emacs 27 or further running on your machine. To verify the version just run `emacs --version`.
36
37### Bonus content
38For maximum  awesomeness I would suggest using [spacemacs](https://www.spacemacs.org/), 
39tt has a lot of features out of the box. To install:
40
41{% highlight bash %}
42git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
43{% endhighlight %}
44
45