diff options
author | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-06-07 22:55:17 -0400 |
---|---|---|
committer | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-06-07 22:55:17 -0400 |
commit | a5ca87dcab3881edc29e9d0eec3bc42bbc84c330 (patch) | |
tree | ae8913c9066097dc91b0854581ec2ad069d2dd72 | |
parent | Enable `cua-selection-mode` directly instead of as a hook (diff) | |
download | mmosmacs-a5ca87dcab3881edc29e9d0eec3bc42bbc84c330.tar.gz mmosmacs-a5ca87dcab3881edc29e9d0eec3bc42bbc84c330.tar.bz2 mmosmacs-a5ca87dcab3881edc29e9d0eec3bc42bbc84c330.zip |
Add `redacted` package to hide text for privacy
-rw-r--r-- | init.el | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 | ;; --------------------------------------------------------------------- |