Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Why doesn't Ubuntu provide the compiled version of emacs .el files

I just noticed that when I start emacs on MATE 20.04, the system packages it loads are source files, not their binaries. I’m curious to know why since, as I understand, the binaries load much faster.

For example,

Loading /etc/emacs/site-start.d/00debian.el (source)...done
Loading /etc/emacs/site-start.d/50auctex.el (source)...
Loading /usr/share/emacs/site-lisp/auctex.el (source)...done
Loading /usr/share/emacs/site-lisp/preview-latex.el (source)...done
Loading /etc/emacs/site-start.d/50auctex.el (source)...done
.
.
.
Loading personal...
Loading no-x-settings...done
Loading ssh...done

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

The listed *.el files

  1. are too small, too short, and over too quickly to benefit from Emacs Lisp compilation. Read them.
  2. are only encountered once, at emacs startup.

A better usage pattern is to start emacs once, enable (server-start) in your ~/.emacs, and use emacsclientto access and reaccess it.
In your ~/.bashrc,

export VISUAL=emacsclient
export EDITOR="$VISUAL"
alias emacs="emacsclient"

will make using emacsclient easier. Read man emacsclient.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading