diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-08-25 23:23:09 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-08-25 23:23:09 +0000 |
commit | dcd12c89db5fd376f80a878759c1a6dff18dfcb3 (patch) | |
tree | 5114f0d4ad078d6c4d867bfa1913ee214dc093a7 /lisp/rot13.el | |
parent | 911398a97f4cdd8f40ff090e40fe2015dd1e0ead (diff) | |
download | emacs-dcd12c89db5fd376f80a878759c1a6dff18dfcb3.tar.gz |
(toggle-rot13-mode): New function.
Diffstat (limited to 'lisp/rot13.el')
-rw-r--r-- | lisp/rot13.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/rot13.el b/lisp/rot13.el index 3cad307cab5..9c831320707 100644 --- a/lisp/rot13.el +++ b/lisp/rot13.el @@ -52,6 +52,15 @@ To terminate the rot13 display, delete that window." (let ((w (display-buffer (current-buffer) t))) (set-window-display-table w rot13-display-table))) +;;;###autoload +(defun toggle-rot13-mode () + "Toggle the use of rot 13 encoding for the current window." + (interactive) + (if (eq (window-display-table (selected-window)) rot13-display-table) + (set-window-display-table (selected-window) nil) + (if (null (window-display-table (selected-window))) + (set-window-display-table (selected-window) rot13-display-table)))) + (provide 'rot13) ;;; rot13.el ends here |