1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-01 20:06:00 +00:00

(toggle-rot13-mode): New function.

This commit is contained in:
Richard M. Stallman 1994-08-25 23:23:09 +00:00
parent 911398a97f
commit dcd12c89db

View File

@ -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