diff options
author | Yuchen Pei <hi@ypei.me> | 2022-04-15 11:44:51 +1000 |
---|---|---|
committer | Yuchen Pei <hi@ypei.me> | 2022-04-15 11:44:51 +1000 |
commit | 50dcde434e76909a0495b3deb38ac0a56c8e89a6 (patch) | |
tree | 621b0518d9e45f716fe55a0fc97a70afea408ee0 /microposts/reading-emacs.org | |
parent | 92c7f395d895f97567ef6a74cd311d036d7d95a1 (diff) |
added some mposts
Diffstat (limited to 'microposts/reading-emacs.org')
-rw-r--r-- | microposts/reading-emacs.org | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/microposts/reading-emacs.org b/microposts/reading-emacs.org new file mode 100644 index 0000000..1107e5b --- /dev/null +++ b/microposts/reading-emacs.org @@ -0,0 +1,19 @@ +#+title: Reading pdf or djvu in Emacs +#+date: <2022-02-17> + +DocView mode is a versitile builtin major mode in emacs, with the +ability to display pdf, djvu, odt etc. + +However, it is not really cut for the job for displaying large pdf or +djvu. It can be slow, and may hang emacs when opening large djvu +files. + +If you want to view pdf, [[https://github.com/politza/pdf-tools][pdf-tools]] is a great alternative. It is much +faster (I'd say as fast as external pdf viewers like zathura), and +offers an outline mode style toc navigation. It also supports fast +regexp isearch as well as occur. There's a nice demo which you can +view with mpv, youtube-dl +etc. http://www.dailymotion.com/video/x2bc1is_pdf-tools-tourdeforce_tech?forcedQuality%3Dhd720 + +For djvu, I recommend use the [[https://elpa.gnu.org/packages/djvu.html][djvu mode]] instead. It does not make +emacs hang, and allows quick switch between image and text. |