From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Dieter_Kl=C3=BCnter?= Newsgroups: gmane.emacs.help Subject: Re: How to enable when run Perl in Emacs? Date: Sun, 28 Feb 2021 20:15:33 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1151"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (usg-unix-v) Cc: znavko@disroot.org To: znavko--- via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 28 20:16:35 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lGRYQ-0000C4-QT for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 28 Feb 2021 20:16:34 +0100 Original-Received: from localhost ([::1]:55546 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGRYP-0004wZ-SL for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 28 Feb 2021 14:16:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGRY3-0004vc-Iw for help-gnu-emacs@gnu.org; Sun, 28 Feb 2021 14:16:11 -0500 Original-Received: from mail.state-of-mind.de ([37.120.191.20]:35128) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGRY0-0005Af-1x for help-gnu-emacs@gnu.org; Sun, 28 Feb 2021 14:16:11 -0500 Original-Received: from indiana (200116b84001c300f2def1fffe609b57.dip.versatel-1u1.de [IPv6:2001:16b8:4001:c300:f2de:f1ff:fe60:9b57]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.state-of-mind.de (Postfix) with ESMTPSA id 4DpY8D3Xr4zyZG; Sun, 28 Feb 2021 20:18:20 +0100 (CET) In-Reply-To: (znavko's message of "Sun, 28 Feb 2021 18:45:28 +0000") Received-SPF: none client-ip=37.120.191.20; envelope-from=dieter@dkluenter.de; helo=mail.state-of-mind.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:128321 Archived-At: znavko--- via Users list for the GNU Emacs text editor writes: > Hello, Emacs Help! > I tried to use Emacs Elpy for Python, and there was a simple way to > run my code with just only C-c C-c. > Standard input worked fine there, I could interact with my program in > separate Emacs window. > > I wish the same codeing on Perl in Emacs. I've installed Perl > Development Environment from CPAN > and added lines into .emacs file. Perl highlights perfectly, but there > are some inconvenience: > > 1. Running scripts is very slow, because I need to press 'C-c r', then > Emacs ask 'would you like to save file', also it may ask me 'there is > a process of compilation, do you want to kill it?' > Here i want just one single command torun my script without any question. > > 2. There is no possibility tointeract with my program in the Emacs > window where my script is executing. > I found some hacks how to use in PDE but that is for running > scripts with Emacs from terminal, not from the window where I coding > it. > > Is there any comfortable Emacs module for Perl editing and debugging > like Elpy for python? > This is my simple program that cannot get any input from the emacs window: > #!/usr/bin/env perl > > use strict; > use warnings; > use feature 'say'; > > say 'Hello!'; > > print "How old are you?"; > my $age =3D <>; > print "WOW! You are $age years old!"; > This is my .emacs: > > ; One window mode > (setq inhibit-startup-screen t) > ;; perl mode pde > (add-to-list 'load-path "~/elisp/pde/lisp") > (load "pde-load") > ;; python emacs-elpy > ; (setq python-shell-interpreter "python3") > ; (setq elpy-rpc-python-command "python3") > ;(elpy-enable) > ;; tab indent > ;; set default tab char's display width to 4 spaces > (setq-default tab-width 4) ; emacs 23.1 to 26 default to 8 > > ;; set current buffer's tab char's display width to 4 spaces > (setq tab-width 4) > ;; BasicCustomization > (setq inhibit-startup-screen t) ;; disable welcome message > (global-linum-mode t) ;; enable line numbers globally > (setq linum-format "%4d u2502") ;; format line number spacing I use mode-compile, cperl-mode and PDE (require 'pde) (defalias 'perl-mode 'cperl-mode) (setq cperl-hairy t) mcpan install Emacs::PDE -Dieter -- Dieter Kl=C3=BCnter | Directory Service http://sys4.de 53=C2=B037'09,95"N 10=C2=B008'02,42"E =20