          (slot . 0)
          (window-width . .25)
          (preserve-size . (t nil)))))
-;; toggle term and help windows
-(global-set-key (kbd "C-c t w") #'window-toggle-side-windows)
-
-;; expedites copying from org-mode to Word for essays
-(defun t/make-region-pastable ()
-  "Save content of the region to the kill ring.
-The copy is altered to remove extraneous newlines and double
-spaces."
-  (interactive)
-  (let* ((buf (current-buffer))
-         (beg (region-beginning))
-         (end (region-end)))
-    (with-temp-buffer
-      (insert-buffer-substring-no-properties buf beg end)
-      (goto-char (point-min))
-      ;; Deletes newlines within a single paragraph
-      (while (re-search-forward "\[a-zA-Z.\]\\(\n\\)\\w" nil t)
-        (replace-match " " nil nil nil 1))
-      ;; Single space over double space sentences
-      (replace-string ".  " ". " nil (point-min) (point-max))
-      ;; Delete empty line between paragraphs
-      (replace-string "\n\n" "\n" nil (point-min) (point-max))
-      (kill-new (buffer-string) t)))
-  (setq deactivate-mark t)
-  (message "Region copied to clipboard"))
-;;(global-set-key (kbd "C-c p") #'t/make-region-pastable)
+
+;; Reenable commands
+(put 'narrow-to-region 'disabled nil)
+
+;; keep buffers updated when underlying file changes
+(global-auto-revert-mode)
+
+;; shortcut access to C-x binds
+;; Super bindings are intended for quick, often-used global commands.
+(global-set-key (kbd "s-1") #'delete-other-windows)
+(global-set-key (kbd "s-2") #'split-window-below)
+(global-set-key (kbd "s-3") #'split-window-right)
+(global-set-key (kbd "s-4") ctl-x-4-map)
+(global-set-key (kbd "s-5") ctl-x-5-map)
+(global-set-key (kbd "s-0") #'delete-window)
+(global-set-key (kbd "s-g") #'keyboard-quit)
+(global-set-key (kbd "s-n") #'next-buffer)
+(global-set-key (kbd "s-p") #'previous-buffer)
+(global-set-key (kbd "s-o") #'other-window)
+(global-set-key (kbd "s-u") #'revert-buffer)
+
+;; ensure buffer titles are unique
+(use-package uniquify
+  :defer 2
+  :config
+  (setq uniquify-buffer-name-style 'forward))
+
+;; ~M-o~ to change window
+(use-package ace-window
+  :straight t
+  :config
+  (setq aw-scope 'frame)
+  :bind
+  ("M-o" . #'ace-window))
+
+;;;; Files
+
+;; ~Neuter~ emacs's littering #habit#
+(setq backup-directory-alist
+      `((".*" . ,temporary-file-directory))
+      auto-save-file-name-transforms
+      `((".*" ,(no-littering-expand-var-file-name "auto-save/") t))
+      custom-file (expand-file-name "custom.el" no-littering-etc-directory))
+
+;; don't permanently delete files
+(setq delete-by-moving-to-trash t)
+(use-package osx-trash
+  :if (eq 'system-type 'darwin)
+  :straight t
+  :defer 2
+  :config
+  (osx-trash-setup))
+
+;; recently opened files
+(use-package recentf
+  :defer 1
+  :config
+  (recentf-mode))
 
 ;; file manager
 (use-package dired

      (expand-file-name ".var" user-emacs-directory)
      straight-base-dir no-littering-var-directory)

(defvar bootstrap-version)
(let ((bootstrap-file
       (expand-file-name "straight/repos/straight.el/bootstrap.el" no-littering-var-directory))

  :hook
  (embark-collect-mode . consult-preview-at-point-mode))

;;;;; Documentation

;; enhanced C-h help system
(use-package helpful
  :straight t
  :bind
  ("C-h k" . #'helpful-key)
  ("C-h v" . #'helpful-variable)
  ("C-h f" . #'helpful-callable))

;; available keybinds popup with "C-h" during key chords
(use-package which-key
  :straight t
  :config
  (setq
   ;; Only show popup on "C-h"
   which-key-show-early-on-C-h t
   which-key-idle-delay 10000
   which-key-idle-secondary-delay 0.05)
  (which-key-mode)
  ;; prefer right side, then bottom for popup
  (which-key-setup-side-window-right-bottom)
  :bind ("C-c h k" . #'which-key-show-top-level))

;;;; Modes

;; HTML browser
(use-package eww
  :defer t
  :bind ("C-c o w" . #'eww)
  :commands (eww))

;;;;; Prose

(use-package text-mode
  :hook (org-mode . auto-fill-mode))

;; enhanced pdf viewing
(use-package pdf-tools
  :straight t
  :config
  (setenv "PKG_CONFIG_PATH"
          "/usr/local/Cellar/zlib/1.2.8/lib/pkgconfig:/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig")
  (setenv "PATH"
          (s-join ":" exec-path))
  (pdf-tools-install)
  (setq-default pdf-view-display-size 'fit-width)
  :custom
  (pdf-annot-activate-created-annotations t "automatically annotate highlights"))

;;;;;; Org-mode

(use-package org
  :straight t
