From e3278c959b0c9e272a5934ac54441f994c66c5a8 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Thu, 15 Oct 2015 16:52:25 -0400 Subject: [PATCH] Add warning about missing TLS support --- README.md | 3 +++ el-get-install.el | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/README.md b/README.md index 2da5edea..46876f80 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/el-get-install.el b/el-get-install.el index 6f787e3a..8af99859 100644 --- a/el-get-install.el +++ b/el-get-install.el @@ -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))