diff options
author | dakkar <dakkar@thenautilus.net> | 2012-06-08 18:22:38 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2012-06-08 18:22:38 +0100 |
commit | abed523395908ed917bd27bff24ec3bdeec7cca6 (patch) | |
tree | 42a9c856b51b48acbe2592a1c9e5b9a037751381 /init.el | |
parent | kill framemove, we don't actually use it much (diff) | |
download | emacs-abed523395908ed917bd27bff24ec3bdeec7cca6.tar.gz emacs-abed523395908ed917bd27bff24ec3bdeec7cca6.tar.bz2 emacs-abed523395908ed917bd27bff24ec3bdeec7cca6.zip |
added PerlySense integration
Diffstat (limited to 'init.el')
-rwxr-xr-x | init.el | 46 |
1 files changed, 46 insertions, 0 deletions
@@ -239,3 +239,49 @@ ; change dictionary with a single key (global-set-key [XF86Launch5] (lambda () (interactive) (ispell-change-dictionary "italiano"))) (global-set-key [XF86MenuKB] (lambda () (interactive) (ispell-change-dictionary "en_GB"))) + +; PerlySense +;; *** PerlySense Config *** + +;; ** PerlySense ** +(setq ps/external-dir (shell-command-to-string "perly_sense external_dir")) +(if (string-match "Devel.PerlySense.external" ps/external-dir) + (progn + (message + "PerlySense elisp files at (%s) according to perly_sense, loading..." + ps/external-dir) + (setq load-path (cons + (expand-file-name + (format "%s/%s" ps/external-dir "emacs") + ) load-path)) + ;; The PerlySense prefix key (unset only if needed, like for \C-o) + (global-unset-key "\C-o") + (setq ps/key-prefix "\C-o") + ;; ** Flymake ** + ;; Load flymake if t + (setq ps/load-flymake t) + ;; *** PerlySense load (don't touch) *** + (load "perly-sense") + ;; ** Flymake Config ** + ;; If you only want syntax check whenever you save, not continously + (setq flymake-no-changes-timeout 9999) + (setq flymake-start-syntax-check-on-newline nil) + ;; ** Code Coverage Visualization ** + ;; If you have a Devel::CoverX::Covered database handy and want to + ;; display the sub coverage in the source, set this to t + (setq ps/enable-test-coverage-visualization nil) + ;; ** Color Config ** + ;; The following colors work fine with a white X11 + ;; background. They may not look that great on a console with the + ;; default color scheme. + (set-face-background 'flymake-errline "OrangeRed1") + (set-face-background 'flymake-warnline "blue1") + (set-face-background 'dropdown-list-face "lightgrey") + (set-face-background 'dropdown-list-selection-face "grey") + ;; ** Misc Config ** + ;; Run calls to perly_sense as a prepared shell command. Experimental + ;; optimization, please try it out. + (setq ps/use-prepare-shell-command t) + ) +) +;; *** PerlySense End ***
\ No newline at end of file |