Emacs, latex, and all that

GNU Emacs is great, superfun

You can play a lot with things like latex, and org-mode, and coding in emacs
I use emacs in windows and linux systems

Windows 10 WSL

I was used to the windows version of emacs 25 in windows 10, but WSL is a supernice tool, thus I recently switched to WSL Ubuntu 20.04, and installed emacs27 via the PPA repository. You may install the APP ubuntu 20.04 in Windows Store. See this post

In windows 10 new need a good X10 server for opening windows, I found that X410 works nicely (it is not freeware)

You need to modify your .bashrc and add

DISPLAY=localhost:0
export DISPLAY

The windows filesystem in the ubuntu WSL terminal is automatically mounted in /mnt/c/Users/

To install emacs27 in ubuntu 20.04 WSL

sudo add-apt-repository ppa:kelleyk/emacs
sudo apt update
sudo apt install emacs27

Ubuntu 20.04

Same as above, works fine

My emacs configuration

As for many Linux things, the nice feature in emacs and all that is that you can easily configure anything. The problem is that you may become addicted in continuously changing the settings, because you do not like the window size, the font, etc. The good news is that this is also true in emacs!

To configure emacs you can either change the file .emacs, whic you can put or find in your home directory. Or you may change the file .emacs.d/init.el where .emacs.d is a config directory that is also in the home. The two methods are exclusive, meaning that either you use .emacs, or .emacs.d/init.el. I prefer to used .emacs.d/init.el as it is more recent.

For example, if you want to change the font, you have to put the following line in .emacs.d/init.el

(set-face-attribute 'default (selected-frame) :height 100)

This may seem weird, as it is not something like fontsize=12, but it is a glimpse into the supersmart world of Lisp. Indeed emacs is written in Lisp, a proper Lisp, the “emacs-lisp” and that is the reason why emacs is so cool.

to be continued