Adding pdf-tools and turning off dialogs/popups.

This commit is contained in:
Derek Taylor
2023-11-18 08:25:11 -06:00
parent 82e1bbbd71
commit ada9eb05c6
2 changed files with 34 additions and 1 deletions

View File

@@ -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

View File

@@ -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