aboutsummaryrefslogtreecommitdiff
path: root/microposts/reading-emacs.org
diff options
context:
space:
mode:
Diffstat (limited to 'microposts/reading-emacs.org')
-rw-r--r--microposts/reading-emacs.org19
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.