Add warning about missing TLS support

This commit is contained in:
Noam Postavsky 2015-10-15 16:52:25 -04:00
parent 630ad6f9bb
commit e3278c959b
2 changed files with 11 additions and 0 deletions

View File

@ -102,6 +102,9 @@ your `user-init-file`).
(eval-print-last-sexp)))
```
NOTE: if you are using Windows see
[Installation on Windows](https://github.com/dimitri/el-get/wiki/Installation-on-Windows).
Evaluating this code after copying it into your `*scratch*` buffer by typing
`C-j` or `M-x eval-print-last-exp` will retrieve the El-Get installation
script. This script will then use `git` to clone El-Get and install it to

View File

@ -21,6 +21,14 @@
(or (bound-and-true-p el-get-dir)
(concat (file-name-as-directory user-emacs-directory) "el-get")))))
(unless (gnutls-available-p)
(display-warning
'el-get
(concat "Your Emacs doesn't support HTTPS (TLS)"
(if (eq system-type 'windows-nt)
",\n see https://github.com/dimitri/el-get/wiki/Installation-on-Windows."
"."))))
(when (file-directory-p el-get-root)
(add-to-list 'load-path el-get-root))