From d7a7942eb2221d12e43feb659f57a890ca99f19a Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby Date: Mon, 10 Jun 2024 13:41:55 +0200 Subject: [PATCH] init: Add nov config (epub reader). --- manifest.scm | 13 +++++++++---- src/init/15_epub.el | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 4 deletions(-) create mode 100644 src/init/15_epub.el diff --git a/manifest.scm b/manifest.scm index 1097f8f..b54b7e5 100644 --- a/manifest.scm +++ b/manifest.scm @@ -6,7 +6,7 @@ (define emacs-dev-tools '("guix" - "magit" "git" "gitlab-ci-mode" + "magit" "gitlab-ci-mode" "deft" "paredit" "company" "flycheck" "multi-term" "strace-mode" @@ -14,14 +14,19 @@ "geiser" "geiser-guile" "geiser-racket")) (define emacs-dev-langs - '("tuareg" "rust-mode" "rustic" "cmake-mode" "julia-mode" + '("tuareg" "rust-mode" ;; "rustic" + "cmake-mode" "julia-mode" "racket-mode" "haskell-mode" "markdown-mode")) +(define emacs-other-tools + '("nov-el")) + (define (name-to-package name) (string-append "emacs-" name)) (specifications->manifest - (append '("emacs") + (append '("emacs" "git") (map name-to-package emacs-base) (map name-to-package emacs-style) (map name-to-package emacs-dev-tools) - (map name-to-package emacs-dev-langs))) + (map name-to-package emacs-dev-langs) + (map name-to-package emacs-other-tools))) diff --git a/src/init/15_epub.el b/src/init/15_epub.el new file mode 100644 index 0000000..15f2a4e --- /dev/null +++ b/src/init/15_epub.el @@ -0,0 +1,33 @@ +;;; 15_epub.el --- Init GNUEmacs configuration. -*- lexical-binding: t; -*- +;; +;; Copyright (C) 2024 Pierre-Antoine Rouby +;; +;; Author: Pierre-Antoine Rouby +;; Keywords: lisp +;; +;; This program is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. +;; +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. +;; +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see . + +;;; Commentary: + +;; Personnal GNUEmacs configuration. + +;;; Code: + +(require 'nov) + +;;; Customize: https://depp.brause.cc/nov.el/ + +(add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode)) + +(setq nov-text-width 80)