Function: dcl-save-mode
dcl-save-mode is an interactive and byte-compiled function defined in
dcl-mode.el.gz.
Signature
(dcl-save-mode)
Documentation
Save the current mode for this buffer.
Save the current mode in a Local Variables:
section at the end of the current buffer.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/dcl-mode.el.gz
(defun dcl-save-mode ()
"Save the current mode for this buffer.
Save the current mode in a `Local Variables:'
section at the end of the current buffer."
(interactive)
(let ((mode (prin1-to-string major-mode)))
(if (string-match "-mode$" mode)
(let ((mode (intern (substring mode 0 (match-beginning 0)))))
(dcl-save-option 'mode))
(message "Strange mode: %s" mode))))