This is a basic emacs configuration to work with LaTeX projects. The configuration has been tested on Ubuntu 20.04 LTS.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
2.4 KiB

  1. # Emacs basic configuration
  2. This is a basic configuration guide to setup Emacs for LaTeX projects. To work along this tutorial please be suro to have installed a minimal LaTeX installation.
  3. ## Emacs
  4. ![](https://flaviocopes.com/linux-command-emacs/Screenshot%202019-02-10%20at%2012.14.18.png)
  5. According with Wikipedia, GNU Emacs is a free software text editor. It was created by GNU Project founder Richard Stallman. In common with other varieties of Emacs, GNU Emacs is extensible using a Turing complete programming language. GNU Emacs has been called "the most powerful text editor available today". GNU Emacs is sometimes abbreviated as GNUMACS, especially to differentiate it from other EMACS variants. The tag line for GNU Emacs is "the extensible self-documenting text editor".
  6. We are going to use GNU Emacs and configure it with Vanilla flavoured style theme.
  7. ## Controlling your emacs configuration
  8. In order to control your changes into the emacs configuration file, it is recommended to make a symbolic link to this repository. Thus, let us first clone this repository and create a symbolic link by using:
  9. ```
  10. $ git clone http://gmarxcc.com:8088/mcie-rs101/emacs-configuration.git
  11. $ cd emacs-configuration
  12. $ ln -s /home/user-name/folder/of/emacs-configuration/.emacs /home/user/.emacs
  13. ```
  14. by doing this, we are going to link both files and register any modification.
  15. ## First run your configuration
  16. When you run at first time Emacs, we have to check that configuration is Ok, and run some scripts to finish the configuration.
  17. Then, the first time starting Emacs will take come time to install all the requiered packages. Then, most propably some warnings about the fonts and icons will appear, close emacs and open it again.
  18. Then, press `M-x` and type `all-the-icons-install-fonts`, after its execution close and open agian emacs.
  19. ### Spell check
  20. One of the most important options of emacs/terminal (GNU project), is the spell check to eneable it use the next commnads:
  21. ```
  22. $ sudo apt install aspell
  23. $ sudo apt-get install aspell-es
  24. ```
  25. then, the aspell application must be aimed to it. First, check where your app is located:
  26. ```
  27. $ which aspell
  28. /usr/bin/aspell
  29. $
  30. ```
  31. This path has to be added in the flyspell directions into the `.emac` file:
  32. ```
  33. ;;Flyspell
  34. (setq ispell-program-name "/usr/bin/aspell") <-- change this path
  35. (dolist (hook '(text-mode-hook))
  36. (add-hook hook (lambda () (flyspell-mode 1))))
  37. ```