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.

43 lines
1.3 KiB

  1. ;;; My basic configuration Gerardo Marx 20/Sep/2021
  2. ;; Ubuntu version
  3. ;;--------
  4. ;; Melpa repository:
  5. (require 'package)
  6. (add-to-list 'package-archives
  7. '("melpa" . "https://melpa.org/packages/")t)
  8. (package-initialize)
  9. ;;+++++++++++++
  10. ;;function to check installed packages:
  11. (defun is-installed (pack)
  12. "Check if a package is istalled"
  13. (unless (package-installed-p pack)
  14. (package-refresh-contents)
  15. (package-install pack)))
  16. ;;++++++++++++++++
  17. ;; Packages used
  18. ;;...............
  19. ;;++++++++++++++
  20. ;; Helm
  21. (is-installed 'helm)
  22. (require 'helm-config)
  23. (global-set-key (kbd "M-x") 'helm-M-x)
  24. (global-set-key (kbd "C-x r b") #'helm-filtered-bookmarks)
  25. (global-set-key (kbd "C-x C-f") #'helm-find-files)
  26. (helm-mode 1)
  27. ;;++++++++++++
  28. ;; which-key
  29. (is-installed 'which-key)
  30. (require 'which-key)
  31. (which-key-mode)
  32. (custom-set-variables
  33. ;; custom-set-variables was added by Custom.
  34. ;; If you edit it by hand, you could mess it up, so be careful.
  35. ;; Your init file should contain only one such instance.
  36. ;; If there is more than one, they won't work right.
  37. '(package-selected-packages (quote (which-key helm))))
  38. (custom-set-faces
  39. ;; custom-set-faces was added by Custom.
  40. ;; If you edit it by hand, you could mess it up, so be careful.
  41. ;; Your init file should contain only one such instance.
  42. ;; If there is more than one, they won't work right.
  43. )