Devel-PerlySense
view release on metacpan or search on metacpan
lib/Devel/PerlySense/external/emacs/perly-sense.el view on Meta::CPAN
) {" g-statement regex))) ;; Insert regex spec on a separate line so it can contain Perl comments
(insert (format "@lines = <DATA>;
$line = join(\" \", @lines);
print \"(\";
%s
print \"(\", length($`), \" \", length($&), \" \";
for $i (1 .. 20) {
if ($$i) {
print \"(\", $i, \" . \\\"\", $$i, \"\\\") \";
}
}
print \")\";
}
print \")\";
__DATA__
%s" regex-line sample))
(call-process-region (point-min) (point-max) "perl" t t)
(goto-char (point-min))
(read (current-buffer)))))
;; For their faces
(require 'compile)
(require 'cperl-mode)
(require 'cus-edit)
;;;; Configuration
(defgroup perly-sense nil
"PerlySense Perl IDE."
:prefix "ps/"
:group 'languages
:version "1.0")
(defcustom ps/dropdown-max-items-to-display '30
"The maximum number of items to display in a dropdown menu. Any
more items than that, use completing read instead."
:type 'integer
:group 'perly-sense)
(defcustom ps/use-prepare-shell-command nil
"Whether to use prepare-shell-command (experimental, but please
try it) to speed things up."
:type 'boolean
:group 'perly-sense)
(defcustom ps/flymake-prefer-errors-in-minibuffer nil
"Whether to display compilation error messages in the
minibuffer instead of as a popup (if your display can't display
popups, they'll always be displayed in the minibuffer).
See the POD docs for how to enable flymake."
:type 'boolean
:group 'perly-sense)
(defgroup perly-sense-faces nil
"Colors."
:link '(custom-group-link :tag "Font Lock Faces group" font-lock-faces)
:prefix "ps/"
:group 'perly-sense)
(defcustom ps/here-face 'font-lock-string-face
"*Face for here-docs highlighting."
:type 'face
:group 'perly-sense-faces)
(defface ps/heading
`((t (:inherit 'custom-face-tag)))
; `((t (:inherit 'bold))) ;
"Face for headings."
:group 'perly-sense-faces)
(defvar ps/heading-face 'ps/heading
"Face for headings.")
(defface ps/module-name
`((((class grayscale) (background light))
(:background "Gray90"))
(((class grayscale) (background dark))
(:foreground "Gray80" :weight bold))
(((class color) (background light))
(:foreground "Blue" :background "lightyellow2"))
(((class color) (background dark))
(:foreground "yellow" :background ,cperl-dark-background))
(t (:weight bold)))
"Face for module names."
:group 'perly-sense-faces)
(defvar ps/module-name-face 'ps/module-name
"Face for module names.")
(defface ps/highlighted-module-name
`((((class grayscale) (background light))
(:background "Gray90" :weight bold))
(((class grayscale) (background dark))
(:foreground "Gray80" :weight bold))
(((class color) (background light))
(:foreground "Blue" :background "lightyellow2" :weight bold))
(((class color) (background dark))
(:foreground "Blue" :background, cperl-dark-background :weight bold))
(t (:weight bold)))
"Face for highlighted module names."
:group 'perly-sense-faces)
(defvar ps/highlighted-module-name-face 'ps/highlighted-module-name
( run in 0.810 second using v1.01-cache-2.11-cpan-364913b4093 )