General module refactor

This commit is contained in:
Henrik Lissner 2019-03-02 01:56:32 -05:00
parent 0bd576673c
commit 7c9e96da87
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
14 changed files with 63 additions and 54 deletions

View file

@ -6,12 +6,7 @@
(unless noninteractive
(pdf-tools-install))
(define-key! pdf-view-mode-map
"q" #'kill-this-buffer)
(when (featurep! :feature evil +everywhere)
(evil-define-key* 'normal pdf-view-mode-map
"q" #'kill-this-buffer))
(map! :map pdf-view-mode-map :gn "q" #'kill-this-buffer)
(defun +pdf|cleanup-windows ()
"Kill left-over annotation buffers when the document is killed."