mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-10 19:23:03 +03:00
feat(emacs): add doc-view
This commit is contained in:
parent
2009a87910
commit
86798c2875
2 changed files with 41 additions and 2 deletions
|
|
@ -268,7 +268,8 @@
|
|||
forge
|
||||
deadgrep
|
||||
vc-annonate
|
||||
telega)))
|
||||
telega
|
||||
doc-view)))
|
||||
|
||||
(use-package avy
|
||||
:straight t
|
||||
|
|
@ -2468,6 +2469,21 @@ Returns (<buffer> . <workspace-index>) or nil."
|
|||
(use-package graphql-mode
|
||||
:straight t)
|
||||
|
||||
(defun my/doc-view-setup ()
|
||||
(display-line-numbers-mode -1)
|
||||
(undo-tree-mode -1))
|
||||
|
||||
(use-package doc-view
|
||||
:straight (:type built-in)
|
||||
:config
|
||||
(setq doc-view-resolution 300)
|
||||
(add-hook 'doc-view-mode-hook #'my/doc-view-setup)
|
||||
(general-define-key
|
||||
:states '(normal)
|
||||
:keymaps '(doc-view-mode-map)
|
||||
"j" #'doc-view-next-line-or-next-page
|
||||
"k" #'doc-view-previous-line-or-previous-page))
|
||||
|
||||
(use-package x509-mode
|
||||
:straight t)
|
||||
|
||||
|
|
|
|||
25
Emacs.org
25
Emacs.org
|
|
@ -495,7 +495,8 @@ Do ex search in other buffer. Like =*=, but switch to other buffer and search th
|
|||
forge
|
||||
deadgrep
|
||||
vc-annonate
|
||||
telega)))
|
||||
telega
|
||||
doc-view)))
|
||||
#+end_src
|
||||
*** Avy
|
||||
[[https://github.com/abo-abo/avy][Avy]] is a package that helps navigate Emacs in a tree-like manner.
|
||||
|
|
@ -3400,6 +3401,28 @@ So far I didn't find a nice SQL client for Emacs, but I occasionally run SQL que
|
|||
(use-package graphql-mode
|
||||
:straight t)
|
||||
#+end_src
|
||||
** Documents
|
||||
*** DocView
|
||||
Don't know about this.
|
||||
|
||||
=doc-view= doesn't look great with the default =doc-view-resolution= of 100. 300 is fine, but then it becomes slow.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(defun my/doc-view-setup ()
|
||||
(display-line-numbers-mode -1)
|
||||
(undo-tree-mode -1))
|
||||
|
||||
(use-package doc-view
|
||||
:straight (:type built-in)
|
||||
:config
|
||||
(setq doc-view-resolution 300)
|
||||
(add-hook 'doc-view-mode-hook #'my/doc-view-setup)
|
||||
(general-define-key
|
||||
:states '(normal)
|
||||
:keymaps '(doc-view-mode-map)
|
||||
"j" #'doc-view-next-line-or-next-page
|
||||
"k" #'doc-view-previous-line-or-previous-page))
|
||||
#+end_src
|
||||
** x509
|
||||
#+begin_src emacs-lisp
|
||||
(use-package x509-mode
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue