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.

22 lines
623 B

  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. ;; Packages:
  10. ;; 1. org-bullets
  11. (is-installed 'org-bullets)
  12. (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))
  13. ;;; +++++++++++++
  14. ;;; My functions:
  15. ;; ----
  16. ;;function to check installed packages:
  17. (defun is-installed (pack)
  18. "Check if a package is istalled"
  19. (unless (package-installed-p pack)
  20. (package-refresh-contents)
  21. (package-install pack)))
  22. ;;=-=-=-=-=