forked from ocaml-sf/learn-ocaml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Deploy ocamlsf/emacs-learn-ocaml-client:{master,$tags} (ocaml-…
…sf#433) (for CI purpose)
- Loading branch information
Showing
5 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!.emacs |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
;;; .emacs --- Emacs conf file -*- coding: utf-8 -*- | ||
|
||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
|
||
;; Config de package.el, MELPA et use-package | ||
|
||
(require 'package) | ||
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) | ||
(package-initialize) | ||
|
||
(unless (package-installed-p 'use-package) | ||
(package-refresh-contents) | ||
(package-install 'use-package)) | ||
(eval-when-compile | ||
(require 'use-package)) | ||
|
||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
|
||
;; Config de Tuareg, Merlin et Company | ||
|
||
(use-package tuareg | ||
:ensure t | ||
:defer t | ||
:init | ||
(setq tuareg-opam-insinuate t)) | ||
|
||
;; Merlin would require OPAM ... | ||
|
||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
|
||
;; Config générale | ||
|
||
(setq column-number-mode t | ||
line-number-mode t | ||
require-final-newline t) | ||
|
||
;; Marquage des parenthèses | ||
(load-library "paren") | ||
(show-paren-mode 1) | ||
|
||
;; Raccourcis C-c/C-x/C-v/C-z standards | ||
;; au lieu de M-w/C-w/C-y/C-_ par défaut dans GNU Emacs | ||
(cua-mode 1) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
ARG base=ocamlsf/learn-ocaml-client | ||
ARG version=master | ||
FROM ${base}:${version} | ||
|
||
WORKDIR /home/learn-ocaml | ||
|
||
USER root | ||
|
||
RUN apk add --no-cache \ | ||
bash \ | ||
curl \ | ||
emacs-nox \ | ||
make \ | ||
&& mkdir -p -v bin \ | ||
&& chown -v learn-ocaml:learn-ocaml bin | ||
|
||
ENV PATH /home/learn-ocaml/bin:${PATH} | ||
|
||
ENV LANG C.UTF-8 | ||
# ENV LC_ALL C.UTF-8 | ||
# ENV LANGUAGE en_US:en | ||
|
||
COPY --chown=learn-ocaml:learn-ocaml .emacs .emacs | ||
|
||
USER learn-ocaml | ||
|
||
# Do some automatic Emacs installation/byte-compilation: | ||
RUN emacs --version && emacs --batch -l ${HOME}/.emacs | ||
|
||
ENTRYPOINT [] | ||
CMD ["/bin/sh"] |