From ada9eb05c6d0f92d0c6f610f2c1db552fe05340e Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Sat, 18 Nov 2023 08:25:11 -0600 Subject: [PATCH] Adding pdf-tools and turning off dialogs/popups. --- .config/emacs/config.el | 14 ++++++++++++++ .config/emacs/config.org | 21 ++++++++++++++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/.config/emacs/config.el b/.config/emacs/config.el index a003968..ea51173 100644 --- a/.config/emacs/config.el +++ b/.config/emacs/config.el @@ -527,6 +527,17 @@ (require 'org-tempo) +(use-package pdf-tools + :ensure t + :defer t + :commands (pdf-loader-install) + :mode "\\.pdf\\'" + :bind (:map pdf-view-mode-map + ("j" . pdf-view-next-line-or-next-page) + ("k" . pdf-view-previous-line-or-previous-page)) + :init (pdf-loader-install) + :config (add-to-list 'revert-without-query ".pdf")) + (use-package perspective :custom ;; NOTE! I have also set 'SCP =' to open the perspective menu. @@ -577,6 +588,9 @@ (scroll-bar-mode -1) ;; Disable the scroll bar (tool-bar-mode -1) ;; Disable the tool bar (setq org-edit-src-content-indentation 0) ;; Set src block automatic indent to 0 instead of 2. +(setq use-file-dialog nil) ;; No file dialog +(setq use-dialog-box nil) ;; No dialog box +(setq pop-up-windows nil) ;; No popup windows (use-package eshell-toggle :custom diff --git a/.config/emacs/config.org b/.config/emacs/config.org index 893452b..785a0b4 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -38,6 +38,7 @@ - [[#diminish-org-indent-mode][Diminish Org Indent Mode]] - [[#org-level-headers][Org Level Headers]] - [[#source-code-block-tag-expansion][Source Code Block Tag Expansion]] +- [[#pdfs][PDFs]] - [[#perspective][PERSPECTIVE]] - [[#projectile][PROJECTILE]] - [[#rainbow-delimiters][RAINBOW DELIMITERS]] @@ -758,6 +759,22 @@ Org-tempo is not a separate package but a module within org that can be enabled. (require 'org-tempo) #+end_src +* PDFs +Handle viewing and annotating pdf's. + +#+begin_src emacs-lisp +(use-package pdf-tools + :defer t + :commands (pdf-loader-install) + :mode "\\.pdf\\'" + :bind (:map pdf-view-mode-map + ("j" . pdf-view-next-line-or-next-page) + ("k" . pdf-view-previous-line-or-previous-page)) + :init (pdf-loader-install) + :config (add-to-list 'revert-without-query ".pdf")) + +#+end_src + * PERSPECTIVE [[https://github.com/nex3/perspective-el][Perspective]] provides multiple named workspaces (or "perspectives") in Emacs, similar to multiple desktops in window managers. Each perspective has its own buffer list and its own window layout, along with some other isolated niceties, like the [[https://www.gnu.org/software/emacs/manual/html_node/emacs/Xref.html][xref]] ring. @@ -834,7 +851,9 @@ The following settings are simple modes that are enabled (or disabled) so that E (scroll-bar-mode -1) ;; Disable the scroll bar (tool-bar-mode -1) ;; Disable the tool bar (setq org-edit-src-content-indentation 0) ;; Set src block automatic indent to 0 instead of 2. - +(setq use-file-dialog nil) ;; No file dialog +(setq use-dialog-box nil) ;; No dialog box +(setq pop-up-windows nil) ;; No popup windows #+end_src * SHELLS AND TERMINALS