Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [perl]

The tag has no usage guidance.

1
vote
0answers
10 views

mmm-mode strange behavior with perl-shell-script

Background: I've been working with a program that is about half Bash and half perl. I thought I'd give mmm-mode a try since it sounded like just the mode for me. I don't know lisp well enough to be ...
1
vote
1answer
40 views

Perl script to fetch mail folders, for use with mbsync or offlineimap

I have been looking at various email setups using different tools within Emacs for the last few months. I looked at various email setups using Gnus, mew, mu4e, wanderlust etc. While reading one of ...
0
votes
0answers
21 views

How to achieve this for a major-mode in Emacs

Sorry, not a searchable title. Wanna achieve a something slightly resembling abbrev-mode, like this: Type my(my+SPACE,SPACE was swallowed by stackexchange), then you type SPACE again, it'll expand to ...
0
votes
1answer
54 views

How can I use Flycheck on Perl code that installs its dependencies with Carton?

Perl module dependency manager Carton installs dependencies into a subdirectory of the project directory, and expects perl to be run under carton exec to set the necessary environment variables to ...
0
votes
2answers
162 views

How can I set my Flycheck Perl include path?

I am using Flycheck using use-package like so: (use-package flycheck :ensure t :init (global-flycheck-mode)) I followed https://randstructure.wordpress.com/2015/06/21/using-emacs-flycheck-with-...
3
votes
1answer
84 views

Electric indent not indenting closing brace in perl-mode

Starting with emacs -Q, I open a C file a.c and a Perl file a.pl. I turn on electric-pair-mode and electric-indent-mode in each. In a.c, I enter the following, where the | shows the cursor position: ...
2
votes
1answer
196 views

Are there any Perl options for company mode?

The only code completion I've found was PlSense but as far as I can see the only options with Emacs using autocomplete among other dependencies. While I don't mind that if I can try to stick to doing ...
3
votes
1answer
92 views

perlcritic mode with cperl mode

I am trying to get the perlcritic minor mode (v 1.10) to work with the cperl mode. What happens is that the minor mode is activated for the buffer but is then deactivated. I've used edebug to try to ...
1
vote
3answers
118 views

Disable loop completion when programming perl

When I type a loop keyword (for, while, do) in perl program, emacs automatically inserts brackets and parenthesizes to complete the loop structure. I would like to disable this but I'm not sure what ...
1
vote
0answers
22 views

Cperl font lock regions in here docs

I am having a problem in cperl-mode described in this question. Basically inserting a newline at the start of a line in here doc in cperl-mode is breaking the syntax highlighting. One of the answers ...
1
vote
1answer
65 views

Cperl-mode syntax highlighting breaks when inserting a newline into a here doc

in cperl-mode, here docs are colored with a font-lock-string-face. However if you used any function that inserts a newline on a blank line (e.g. M-: (insert "\n")) it will cause all code after the ...
1
vote
1answer
237 views

add a rule to syntax-propertize-rules

I have an issue outlined here that I was able to find a partial solution for. The problem involved changing perl-modes syntax table. One of the commenters pointed me to the function syntax-propertize-...
4
votes
1answer
151 views

modify syntax table for strings in perl modes

My company uses a version of Perl where you can define by binary number using something like my $var = 'b010110110; etc. Problem is both perl-mode and cperl-mode interpret ' as the start of the string ...
2
votes
0answers
38 views

Using hideshow with Perl code / POD

I've got emacs' HideShow mode working well with Perl code (let's face it, it's a doddle), but I don't know if it's even possible to get it to fold POD comments as well. Has anyone done this (and if so,...
4
votes
3answers
72 views

Is there any setting in Emacs to choose perlbrew over perl?

I have a Perl project (developed in Ubuntu 14.04) which cannot be built on perl 5.18.2, but it works on Perlbrew 5.22.0. I have tried to use M-x perldb in Emacs but it looks like Emacs calls Perl 5.18....
1
vote
1answer
1k views

How to convert a MULE encoded file to UTF-8?

I am trying to modify a buffer written by desktop-save to a file. The file is named .emacs.desktop and I am trying to modify it from a Perl script. It turns out that it is saved in emacs-mule encoding....
1
vote
1answer
94 views

perl syntax highlighting disactivated

I'm using emacs for perl scripting and for some unknown reason the syntax highlighting is inactivated when opening new or existing scripts. I'm wondering if I press a key unknowingly that ...
1
vote
0answers
76 views

Read string at current cursor position instead of in minibuffer

I am trying to simplify user input of Pod formatting sequences in cperl-mode. For example, if you type C<hello>, C<> is a Pod formatting sequence for entering code, similar to the use of ...
2
votes
1answer
329 views

How to get correct indentation for the closing parenthesis in cperl-mode?

I have problems with correct alignment of the closing parenthesis in cperl-mode. For example consider the following Perl code: my $a = func1( Module::test() ); my $b = func2( test() ); my ...
7
votes
1answer
284 views

Use font-lock mode on only part of buffer

I am trying to add a comment feature to Pod documentation for Perl scripts, and I would like to highligh Pod comments with a special face. A simple prototype Perl script could be: #! /usr/bin/env ...
3
votes
1answer
65 views

Match Perl identifier using re-search

I am trying to match a Perl identifier at the point, like My::Module::dummy_func. I'd like to start simple and require a valid identifier as follows: restricted to a single line starts with a space ...