Skip to content

Instantly share code, notes, and snippets.

@edenc
Created November 20, 2012 17:52
Show Gist options
  • Select an option

  • Save edenc/4119593 to your computer and use it in GitHub Desktop.

Select an option

Save edenc/4119593 to your computer and use it in GitHub Desktop.
(add-to-list 'ec/path "~/perl5/bin")
(add-to-list 'ec/perl-inc "~/perl5/lib/perl5")
(setq cperl-highlight-variables-indiscriminately t)
(defalias 'perl-mode 'cperl-mode)
(require 'perltidy)
(global-set-key "\C-cpb" 'perltidy-buffer)
(global-set-key "\C-cps" 'perltidy-subroutine)
(global-set-key "\C-cpr" 'perltidy-region)
(setenv "PATH"
(mapconcat 'identity
(mapcar 'expand-file-name ec/path)
":"))
(setenv "PERL5LIB"
(mapconcat 'identity
(mapcar 'expand-file-name ec/perl-inc) ":"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment