diff options
| author | Brad Clawsie <brad@b7j0c.org> | 2022-12-19 11:47:04 -0600 |
|---|---|---|
| committer | Brad Clawsie <brad@b7j0c.org> | 2022-12-19 11:47:04 -0600 |
| commit | c6e362698f30874ba7ddf87ae708dc008a6da6ff (patch) | |
| tree | c4919133df37c981654938608e8e87656a625d81 /emacs | |
| parent | 254d197447e3bf8c96388e9a0b77491c386643a1 (diff) | |
switch to cperl
Diffstat (limited to 'emacs')
| -rw-r--r-- | emacs/dotemacs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/emacs/dotemacs b/emacs/dotemacs index 3a7b5bb..1c0ae44 100644 --- a/emacs/dotemacs +++ b/emacs/dotemacs @@ -49,6 +49,7 @@ lsp-ui magit markdown-mode + perl-doc pinentry rustic toml-mode @@ -175,10 +176,15 @@ ;; perl ;; .t files perl-mode -(add-to-list 'auto-mode-alist '("\\.t\\'" . perl-mode)) -(add-to-list 'lsp-language-id-configuration '(perl-mode . "perl")) -(add-to-list 'lsp-language-id-configuration '(".*\\.pl$" . "perl")) -(add-to-list 'lsp-language-id-configuration '(".*\\.pm$" . "perl")) +;; use cperl-mode instead of perl-mode +(setq auto-mode-alist (rassq-delete-all 'perl-mode auto-mode-alist)) +(add-to-list 'auto-mode-alist '("\\.\\(p\\([lm]\\)\\)\\'" . cperl-mode)) + +(setq interpreter-mode-alist (rassq-delete-all 'perl-mode interpreter-mode-alist)) +(add-to-list 'interpreter-mode-alist '("perl" . cperl-mode)) +(add-to-list 'interpreter-mode-alist '("perl5" . cperl-mode)) +(add-to-list 'interpreter-mode-alist '("miniperl" . cperl-mode)) +(add-to-list 'interpreter-mode-alist '("\\.t\\'" . cperl-mode)) ;; markdown, text ;; run auto-fill whenever editing |
