An Emacs configuration to work with LaTeX, Python, C, C++, Pandoc, Markdown, Slack, and git running natively in different OS like MacOS, ArchLinux, and Ubuntu.
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.

45 lines
1.5 KiB

  1. ;;; My basic configuration Gerardo Marx 15/Jul/2020
  2. ;;--------
  3. ;; Melpa repository:
  4. (require 'package)
  5. (add-to-list 'package-archives
  6. '("melpa" . "https://melpa.org/packages/")t)
  7. (package-initialize)
  8. ;;++++++++++++++++
  9. ;; use-package
  10. (unless (package-installed-p 'use-package)
  11. (package-refresh-contents)
  12. (package-install 'use-package))
  13. ;;+++++++++++++
  14. ;; frame size
  15. (setq initial-frame-alist '((top . 0)(left . 0)
  16. (width . 80)(height . 50)))
  17. ;;+++++++++++
  18. ;; Doom-themes, all-the-icons, mode-line and font
  19. (unless (package-installed-p 'doom-themes)
  20. (package-install 'doom-themes))
  21. (unless (package-installed-p 'all-the-icons)
  22. (package-install 'all-the-icons))
  23. (require 'doom-themes)
  24. ;; Global settings (defaults)
  25. (setq doom-themes-enable-bold t ; if nil, bold is universally disabled
  26. doom-themes-enable-italic t) ; if nil, italics is universally disabled
  27. ;; Load the theme (doom-one, doom-molokai, etc); keep in mind that each
  28. ;; theme may have their own settings.
  29. (load-theme 'doom-one t)
  30. ;; Enable flashing mode-line on errors
  31. (doom-themes-visual-bell-config)
  32. ;; Enable custom neotree theme
  33. (doom-themes-neotree-config) ; all-the-icons fonts must be installed!
  34. ;; Installling doom-modeline:
  35. (unless (package-installed-p 'doom-modeline)
  36. (package-install 'doom-modeline))
  37. (require 'doom-modeline)
  38. (doom-modeline-mode 1)
  39. ;;Intalling all-the-icons font:
  40. (unless (package-installed-p 'all-the-icons)
  41. (package-install 'all-the-icons))
  42. ;; Set default font:
  43. (add-to-list 'default-frame-alist
  44. '(font . "Source Code Pro-24"))
  45. ;;---------