Extend configuration of cperl-mode

Enable automatic display of help messages, and disable most of the other
features.
This commit is contained in:
Daniel - 2020-02-20 21:21:47 +01:00
parent 15f3a2d145
commit ffeead8d72
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 10 additions and 2 deletions

12
init.el
View File

@ -2560,10 +2560,18 @@ in the main agenda view."
(if (eq (cdr pair) 'perl-mode)
(setcdr pair 'cperl-mode)))
(append auto-mode-alist interpreter-mode-alist))
(setq cperl-hairy nil))
(setq cperl-hairy nil
cperl-invalid-face 'default
cperl-electric-keywords nil
cperl-lazy-help-time 2))
:config (progn
(add-hook 'cperl-mode-hook 'flycheck-mode)
(add-hook 'cperl-mode-hook 'prettify-symbols-mode)))
(add-hook 'cperl-mode-hook 'prettify-symbols-mode)
;; enable display of help messages after a short period of time, as
;; controlled by the value of `cperl-lazy-help-time'
(add-hook 'cperl-mode-hook 'cperl-lazy-install)))
(use-package crux
:ensure t