Function: mode-line-change-eol
mode-line-change-eol is an interactive and byte-compiled function
defined in bindings.el.gz.
Signature
(mode-line-change-eol EVENT)
Documentation
Cycle through the various possible kinds of end-of-line styles.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/bindings.el.gz
(defun mode-line-change-eol (event)
"Cycle through the various possible kinds of end-of-line styles."
(interactive "e")
(with-selected-window (posn-window (event-start event))
(let ((eol (coding-system-eol-type buffer-file-coding-system)))
(set-buffer-file-coding-system
(cond ((eq eol 0) 'dos) ((eq eol 1) 'mac) (t 'unix))))))