Browse Source

Improve some descriptions

custom
Bozhidar Batsov 5 years ago
parent
commit
e3a7eba54b
  1. 7
      core/prelude-packages.el

7
core/prelude-packages.el

@ -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."

Loading…
Cancel
Save