Fix previous cperl-file-style change
* lisp/progmodes/cperl-mode.el (cperl--set-file-style): New function. (cperl-mode): Add it to hack-local-variables-hook to really set the cperl style.
This commit is contained in:
parent
ca52b12780
commit
9e131744fb
1 changed files with 5 additions and 0 deletions
|
@ -1812,8 +1812,13 @@ or as help on variables `cperl-tips', `cperl-problems',
|
|||
(cperl-find-pods-heres))
|
||||
(when cperl-file-style
|
||||
(cperl-set-style cperl-file-style))
|
||||
(add-hook 'hack-local-variables-hook #'cperl--set-file-style nil t)
|
||||
;; Setup Flymake
|
||||
(add-hook 'flymake-diagnostic-functions #'perl-flymake nil t))
|
||||
|
||||
(defun cperl--set-file-style ()
|
||||
(when cperl-file-style
|
||||
(cperl-set-style cperl-file-style)))
|
||||
|
||||
;; Fix for perldb - make default reasonable
|
||||
(defun cperl-db ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue