Emacs configuration file for MacOs
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.

46 lines
1.3 KiB

  1. ;;; ------------------------
  2. ;;; Emacs configiration file for MacOS
  3. ;;; Gerardo Marx June - 2022
  4. ;;; ------------------------
  5. ;; Melpa repository:
  6. (package-initialize)
  7. (add-to-list 'package-archives
  8. '("melpa" . "https://melpa.org/packages/")t)
  9. ;; +++++++++++++
  10. ;; My functions:
  11. ;; ----
  12. ;;function to check installed packages:
  13. (defun is-installed (pack)
  14. "Check if a package is istalled"
  15. (unless (package-installed-p pack)
  16. (package-refresh-contents)
  17. (package-install pack)))
  18. ;; =-=-=-=-=-=-
  19. ;; UI behaivior
  20. (setq inhibit-startup-message t)
  21. (tool-bar-mode -1)
  22. (menu-bar-mode -1)
  23. (scroll-bar-mode -1)
  24. (defalias 'yes-or-no-p 'y-or-n-p)
  25. ;; =-=-=-=
  26. ;; Themes
  27. (is-installed 'doom-themes)
  28. (require 'doom-themes)
  29. ;; Global settings (defaults)
  30. (setq doom-themes-enable-bold t ; if nil, bold is universally disabled
  31. doom-themes-enable-italic t) ; if nil, italics is universally disabled
  32. (load-theme 'doom-one t)
  33. (doom-themes-visual-bell-config) ; Enable flashing mode-line on errors
  34. ;; Enable custom neotree theme
  35. ;(doom-themes-neotree-config) ; all-the-icons fonts must be installed!
  36. ;;=-=-=-=-=
  37. ;; Packages:
  38. ;; 1 org-bullets:
  39. (is-installed 'org-bullets)
  40. (require 'org-bullets)
  41. (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))
  42. ;; 2 minimap: like subblime
  43. (is-installed 'minimap)
  44. (require 'minimap)