Skip to content

Instantly share code, notes, and snippets.

@aanoaa
Created December 3, 2013 12:38
Show Gist options
  • Save aanoaa/7768518 to your computer and use it in GitHub Desktop.
Save aanoaa/7768518 to your computer and use it in GitHub Desktop.
(setenv "PERL5LIB" (concat "./lib:" (getenv "PERL5LIB")))
(setenv "PATH" (concat (getenv "HOME") "/.plenv/shims:" (getenv "HOME") "/.plenv/bin:" (getenv "PATH")))
(setq exec-path (cons (concat (getenv "HOME") "/.plenv/shims") (cons (concat (getenv "HOME") "/.plenv/bin") exec-path)))
(require 'plenv) ; <M-x> package-install plenv
(plenv-global "5.18.1")
(defun flymake-perl-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
'flymake-create-temp-with-folder-structure))
(local-file (file-relative-name
temp-file
(file-name-directory buffer-file-name))))
(list (guess-plenv-perl-path) (list "-wc" local-file))))
; https://github.com/tokuhirom/plenv
; https://github.com/karupanerura/plenv.el
; http://marc-bowes.com/2012/03/10/rbenv-with-emacs.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment