(ap:add-project :name 'perl
:look-for '("Makefile.PL" "Build.PL")
:exclude-regexp '("/blib"))
(require 'init-loader) (init-loader-load "~/.emacs.d/conf")
(require 'auto-install) (setq auto-install-directory "~/.emacs.d/elisp/")
M-x auto-install-from-url http://.../something.el M-x auto-install-batch anything
M-x auto-install-batch anything
M-x auto-install-batch perl-completion
M-x auto-install-batch auto-complete
M-x auto-install http://github.com/imakado/anything-project/raw/master/anything-project.el
とかにそれに設定を書く(XXは数字)
(require 'anything-config) (require 'anything) (global-set-key "\C-xb" 'anything)
;; load-path (add-to-list 'load-path "~/.emacs.d/elisp") (require 'init-loader) (init-loader-load "~/.emacs.d/conf")
(defun flymake-perl-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
'flymake-create-temp-inplace))
(local-file (file-relative-name
temp-file
(file-name-directory buffer-file-name))))
(list "perl" (list "-wc" local-file))))
(defun flymake-perl-load ()
(interactive)
(set-perl5lib)
(defadvice flymake-post-syntax-check (before flymake-force-check-was-interrupted)
(setq flymake-check-was-interrupted t))
(ad-activate 'flymake-post-syntax-check)
(setq flymake-allowed-file-name-masks (append flymake-allowed-file-name-masks flymake-allowed-perl-file-name-masks))
(setq flymake-err-line-patterns flymake-perl-err-line-patterns)
(flymake-mode t))
(add-hook 'cperl-mode-hook '(lambda () (flymake-perl-load)))
(defun perltidy-region ()
"Run perltidy on the current region."
(interactive)
(save-excursion
(shell-command-on-region (point) (mark) "perltidy -q" nil t)))