/usr/share/doc/libtext-autoformat-perl/examples/config.emacs is in libtext-autoformat-perl 1.740000-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 | ;; Add these lines to your .emacs and you will be happy with
;; p5-Text-Autoformat.
;; Use ctrl-c k to reformat a region.
;; Set a global key for autoformat region
(global-set-key (kbd "C-c k") (lambda () (interactive)
(shell-command-on-region (region-beginning) (region-end)
"perl -MText::Autoformat -e \"{autoformat{all=>1};}\""
(current-buffer) t)))
|