From a5ca87dcab3881edc29e9d0eec3bc42bbc84c330 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Wed, 7 Jun 2023 22:55:17 -0400 Subject: Add `redacted` package to hide text for privacy --- init.el | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/init.el b/init.el index cf2ab85..b40f6e4 100644 --- a/init.el +++ b/init.el @@ -302,6 +302,20 @@ :hook (prog-mode . hl-line-mode)) +;; --------------------------------- +;; Hide text for privacy +;; --------------------- +;; Sometimes you just don't want +;; people reading your stuff. +;; --------------------------------- + +(use-package redacted + :straight t + :config + (global-set-key (kbd "s-p") 'redacted-mode)) +(add-hook 'redacted-mode-hook (lambda () (read-only-mode (if redacted-mode 1 -1)))) + + ;; --------------------------------------------------------------------- -- cgit v1.2.3