From d7a6d933c8e11562d69fc62b47e6e35779ad96e3 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 28 Jul 2022 18:11:17 +0100 Subject: (Emacs)~pdf tools, ~title for compilation +display system for pdf opening --- Emacs/.config/emacs/config.org | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Emacs/.config/emacs/config.org') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 7ecf3af..6e2f511 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -1983,7 +1983,7 @@ However, if necessary later, define a function that may activate tabs locally. (interactive) (setq-local indent-tabs-mode t)) #+end_src -*** Colourising compilation +*** Compilation Colourising the compilation buffer so ANSI colour codes get computed. #+begin_src emacs-lisp (use-package compile @@ -2027,13 +2027,17 @@ Emacs, having a PDF viewer builtin can be a very useful asset. For example if I were editing an org document which I was eventually compiling into a PDF, my workflow would be much smoother with a PDF viewer within Emacs that I can open on another pane. -*** PDF Tools +*** PDF tools =pdf-tools= provides the necessary functionality for viewing PDFs. There is no proper PDF viewing without this package. =evil-collection= provides a setup for this mode, so use that. #+begin_src emacs-lisp (use-package pdf-tools :mode ("\\.[pP][dD][fF]" . pdf-view-mode) + :display + ("^.*pdf$" + (display-buffer-same-window) + (inhibit-duplicate-buffer . t)) :config (with-eval-after-load "evil-collection" (evil-collection-pdf-setup))) -- cgit v1.2.3-13-gbd6f