obfuscate-mode is a lightweight Emacs minor mode that dynamically obfuscates text in a buffer. It is useful for hiding sensitive information or obfuscating text during presentations or while working in shared environments.
- Dynamic Obfuscation: Only obfuscates visible portions of the buffer for optimal performance.
- Customizable Obfuscation Character: Choose the character used to obfuscate text.
- Lightweight and Compatible: Uses modern Emacs features like
jit-lockand text properties to integrate smoothly with other functionality.
- Save
obfuscate-mode.elto a directory in your Emacsload-path. - Add the following to your Emacs configuration:
(require 'obfuscate-mode)
To enable obfuscate-mode, run:
M-x obfuscate-modeThis will obfuscate all visible text in the current buffer. The obfuscation is dynamic, meaning it will automatically apply to newly visible regions as you scroll.
You can customize the obfuscation character by setting obfuscate-mode-obfuscation-character:
(setq obfuscate-mode-obfuscation-character "\u25A0") ; Solid squareThe default obfuscation character is a hollow square (▢, Unicode \u25A1).
Pull requests are welcome :)
obfuscate-mode is licensed under the MIT License. See the LICENSE file for details.
