This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+readers/epub/packages.el
André Peric Tavares 31b3d66e2b Add keybindings for scrolling in epub layer
Add `d` and `u` for scrolling down and up, just like the `pdf` layer.
Those are actually default `nov` keybings.

Invert `up` and `down` `nov` commands

Add keybindings in epub layer docs

Align table
2018-08-02 01:38:05 +03:00

32 lines
910 B
EmacsLisp

;;; packages.el --- epub layer packages file for Spacemacs.
;;
;; Copyright (c) 2012-2017 Sylvain Benner & Contributors
;;
;; Author: Jeremy Dormitzer <jeremy.dormitzer@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(defconst epub-packages '(nov))
(defun epub/init-nov ()
(use-package nov
:defer t
:mode ("\\.epub\\'" . nov-mode)
:config
(evilified-state-evilify-map nov-mode-map
:mode nov-mode
:bindings
(kbd "H") 'nov-previous-document
(kbd "L") 'nov-next-document
(kbd "[") 'nov-previous-document
(kbd "]") 'nov-next-document
(kbd "d") 'nov-scroll-up
(kbd "u") 'nov-scroll-down
(kbd "gm") 'nov-display-metadata
(kbd "gr") 'nov-render-document
(kbd "gt") 'nov-goto-toc
(kbd "gv") 'nov-view-source
(kbd "gV") 'nov-view-content-source)))