Function: cperl-file-style
cperl-file-style is an interactive and byte-compiled function defined
in cperl-mode.el.gz.
Signature
(cperl-file-style STYLE)
Documentation
Set the indentation style for the current buffer to STYLE.
The list of styles is in cperl-style-alist, available styles
are "CPerl", "PBP", "PerlStyle", "GNU", "K&R", "BSD", "C++"
and "Whitesmith".
Probably introduced at or before Emacs version 29.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/cperl-mode.el.gz
(defun cperl-file-style (style)
"Set the indentation style for the current buffer to STYLE.
The list of styles is in `cperl-style-alist', available styles
are \"CPerl\", \"PBP\", \"PerlStyle\", \"GNU\", \"K&R\", \"BSD\", \"C++\"
and \"Whitesmith\"."
(interactive
(list (completing-read "Enter style: " cperl-style-alist nil 'insist)))
(dolist (setting (cdr (assoc style cperl-style-alist)) style)
(let ((option (car setting))
(value (cdr setting)))
(set (make-local-variable option) value)))
(setq-local cperl-file-style style))