Created
May 18, 2020 13:24
-
-
Save Hodapp87/2a3e9c47d6715dd47a50cb04736e8279 to your computer and use it in GitHub Desktop.
ox-hugo test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:18.04 | |
RUN apt-get update -y \ | |
&& apt-get install -y emacs-nox ca-certificates wget unzip \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN mkdir /root/.emacs.d | |
COPY init.el /root/.emacs.d/ | |
COPY test.org /root | |
RUN emacs --batch -l ~/.emacs.d/init.el -f package-refresh-contents |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'package) | |
(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos)) | |
(not (gnutls-available-p)))) | |
(proto (if no-ssl "http" "https"))) | |
(when no-ssl (warn "\ | |
Your version of Emacs does not support SSL connections, | |
which is unsafe because it allows man-in-the-middle attacks. | |
There are two things you can do about this warning: | |
1. Install an Emacs version that does support SSL and be safe. | |
2. Remove this warning from your init file so you won't see it again.")) | |
(add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t) | |
;; Comment/uncomment this line to enable MELPA Stable if desired. See `package-archive-priorities` | |
;; and `package-pinned-packages`. Most users will not need or want to do this. | |
;;(add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t) | |
) | |
(package-initialize) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment