Improve some descriptions

This commit is contained in:
Bozhidar Batsov 2020-09-16 08:39:26 +03:00
parent 44b10b968d
commit e3a7eba54b

View file

@ -10,7 +10,8 @@
;;; Commentary: ;;; Commentary:
;; Takes care of the automatic installation of all the packages required by ;; Takes care of the automatic installation of all the packages required by
;; Emacs Prelude. ;; Emacs Prelude. This module also adds a couple of package.el extensions
;; and provides functionality for auto-installing major modes on demand.
;;; License: ;;; License:
@ -33,6 +34,8 @@
(require 'cl-lib) (require 'cl-lib)
(require 'package) (require 'package)
;;;; Package setup and additional utility functions
;; accessing a package repo over https on Windows is a no go, so we ;; accessing a package repo over https on Windows is a no go, so we
;; fallback to http there ;; fallback to http there
(if (eq system-type 'windows-nt) (if (eq system-type 'windows-nt)
@ -128,6 +131,8 @@ removing unwanted packages."
(package-show-package-list (package-show-package-list
(cl-set-difference package-activated-list prelude-packages))) (cl-set-difference package-activated-list prelude-packages)))
;;;; Auto-installation of major modes on demand
(defmacro prelude-auto-install (extension package mode) (defmacro prelude-auto-install (extension package mode)
"When file with EXTENSION is opened triggers auto-install of PACKAGE. "When file with EXTENSION is opened triggers auto-install of PACKAGE.
PACKAGE is installed only if not already present. The file is opened in MODE." PACKAGE is installed only if not already present. The file is opened in MODE."