aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMountain Man <43313373+MountainMan1312@users.noreply.github.com>2023-06-07 22:55:17 -0400
committerMountain Man <43313373+MountainMan1312@users.noreply.github.com>2023-06-07 22:55:17 -0400
commita5ca87dcab3881edc29e9d0eec3bc42bbc84c330 (patch)
treeae8913c9066097dc91b0854581ec2ad069d2dd72
parentEnable `cua-selection-mode` directly instead of as a hook (diff)
downloadmmosmacs-a5ca87dcab3881edc29e9d0eec3bc42bbc84c330.tar.gz
mmosmacs-a5ca87dcab3881edc29e9d0eec3bc42bbc84c330.tar.bz2
mmosmacs-a5ca87dcab3881edc29e9d0eec3bc42bbc84c330.zip
Add `redacted` package to hide text for privacy
-rw-r--r--init.el14
1 files changed, 14 insertions, 0 deletions
diff --git a/init.el b/init.el
index cf2ab85..b40f6e4 100644
--- a/init.el
+++ b/init.el
@@ -302,6 +302,20 @@
302 :hook (prog-mode . hl-line-mode)) 302 :hook (prog-mode . hl-line-mode))
303 303
304 304
305;; ---------------------------------
306;; Hide text for privacy
307;; ---------------------
308;; Sometimes you just don't want
309;; people reading your stuff.
310;; ---------------------------------
311
312(use-package redacted
313 :straight t
314 :config
315 (global-set-key (kbd "s-p") 'redacted-mode))
316(add-hook 'redacted-mode-hook (lambda () (read-only-mode (if redacted-mode 1 -1))))
317
318
305 319
306 320
307;; --------------------------------------------------------------------- 321;; ---------------------------------------------------------------------