377d1b83a988632aa66c245231b6fb9542ac63e5 — Enrico Lovisotto 4 months ago c5f6a66
Removed website rendering
2 files changed, 1 insertions(+), 77 deletions(-)

D .gitlab-ci.yml
M init.org
D .gitlab-ci.yml => .gitlab-ci.yml +0 -22
@@ 1,22 0,0 @@
image: silex/emacs

  # generate pre-publish.el
  - emacs --batch --visit init.org -f org-babel-tangle

  # use the script to inizialize emacs packets
  - emacs --batch --load pre-publish.el --visit init.org -f org-html-export-to-html

  # move to export directory
  - mkdir public/
  - mv init.html public/index.html

    expire_in: 1 day

    - public

  - master

M init.org => init.org +1 -55
@@ 10,59 10,6 @@ This ~org~ file is a literate programming approach to write my Emacs
configuration. The actual ~init.el~ script is generated using

Visit [[https://lobisquit.gitlab.io/emacs.d/][here]] the generated HTML export.

* ~org-export~ headers                                             :noexport:
This section contains some aesthetic settings for LaTeX and HTML.

** Latex
#+latex_compiler: xelatex

#+latex_header: \usepackage{listings}
#+latex_header: \usepackage{minted}

#+latex_header_extra: \usepackage{fontspec}
#+latex_header_extra: \setmainfont{Fira Sans}
#+latex_header_extra: \setmonofont{Fira Code}
#+latex_header_extra: \usepackage{lstfiracode}

#+latex_header: \usepackage{xcolor}
#+latex_header: \definecolor{mygray}{gray}{0.4}
#+latex_header: \lstset{basicstyle=\footnotesize\ttfamily,
#+latex_header:         showstringspaces=false,
#+latex_header:         commentstyle=\color{mygray}}

#+latex_header: \makeatletter
#+latex_header: \renewcommand\paragraph{%
#+latex_header:     \@startsection{paragraph}{4}{0mm}%
#+latex_header:        {-\baselineskip}%
#+latex_header:        {.5\baselineskip}%
#+latex_header:        {\normalfont\normalsize\bfseries}}
#+latex_header: \makeatother

#+setupfile: https://fniessen.github.io/org-html-themes/org/theme-readtheorg.setup

A pre-export script is needed to install ~htmlize~ dipendency.

#+begin_src elisp :tangle pre-publish.el
  ;; initialize package with MELPA
  (require 'package)
  (add-to-list 'package-archives
               '("melpa" . "https://melpa.org/packages/") t)

  ;; install HTML generator
  (package-install 'htmlize)

  ;; org-plus-contrib seems to need use-package
  (package-install 'use-package)
  (use-package org :ensure org-plus-contrib)

* Preamble
Disable garbage collection on startup, to lower init time.

@@ 297,7 244,7 @@ Remove nasty delay between cursor stop and parenthesis highlighting.
*** Window splitting
This way windows tend to split vertically: ideal for laptops.

#+begin_src elisp
#+begin_src elisp :tangle no
  (setq split-height-threshold 50)
  (setq split-width-threshold 70)

@@ 550,7 497,6 @@ Setup colored parenthesis for
    :hook ((lisp-mode . rainbow-delimiters-mode)))

* Epilogue
Re-set garbage collector limit to a sensible value.