From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: znavko--- via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: How to enable when run Perl in Emacs? Date: Sun, 28 Feb 2021 18:45:28 +0000 Message-ID: Reply-To: znavko@disroot.org 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="26924"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 28 19:46:20 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 1lGR59-0006tX-1S for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 28 Feb 2021 19:46:19 +0100 Original-Received: from localhost ([::1]:43952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGR58-0005cM-1u for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 28 Feb 2021 13:46:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGR4U-0005c5-UO for help-gnu-emacs@gnu.org; Sun, 28 Feb 2021 13:45:38 -0500 Original-Received: from knopi.disroot.org ([178.21.23.139]:35736) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGR4R-0006hT-4T for help-gnu-emacs@gnu.org; Sun, 28 Feb 2021 13:45:37 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id BFA3A50EA9 for ; Sun, 28 Feb 2021 19:45:30 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 55fOdi-82cfX for ; Sun, 28 Feb 2021 19:45:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1614537928; bh=CEhP4bmIp6IS2OFMTFExi9Odcj1zTCDFfwVHbskwONU=; h=Date:From:Subject:To; b=FtE8bRz6LDgJx7dQmDFW10SRIALP4Ft+E1SUDtWDjbJMesU4Cd0CmI+6MHSlJz/J1 v2HRgqs4SiPQt9KZHIrd76aF3qs4pEPrwMnCLtB/aCU7HOAMV3aHFIS764chEUtj4k 7/MWNNZiII/Xi6bJtXR22nBYA2YP1IWmSY5eoNcXSSCyoWGX9pD6nwZ8QuOw0irw7K 7xN4JufHU8JXQTuUcqiHLRXa7De1iUVq67hJxYtgb2opHxjdjVy8kaapmUzlyOeies Zq256R7afvRmuxynEr51B2CDol5ZZdVqe8Noc+8i96gBv42xBhdWcr1zlcQ3P7vBVm xJEK/LhLIHe4g== Received-SPF: pass client-ip=178.21.23.139; envelope-from=znavko@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:128319 Archived-At: Hello, Emacs Help!=0AI tried to use Emacs Elpy for Python, and there was = a simple way to run my code with just only C-c C-c. =0AStandard input wor= ked fine there, I could interact with my program in separate Emacs window= .=0A=0AI wish the same codeing on Perl in Emacs. I've installed Perl Deve= lopment Environment from CPAN=0Aand added lines into .emacs file. Perl hi= ghlights perfectly, but there are some inconvenience:=0A=0A1. Running scr= ipts 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 compil= ation, do you want to kill it?'=0AHere i want just one single command tor= un my script without any question.=0A=0A2. There is no possibility tointe= ract with my program in the Emacs window where my script is executing.=0A= I found some hacks how to use in PDE but that is for running scri= pts with Emacs from terminal, not from the window where I coding it.=0A= =0AIs there any comfortable Emacs module for Perl editing and debugging l= ike Elpy for python?=0AThis is my simple program that cannot get any inpu= t from the emacs window:=0A#!/usr/bin/env perl=0A=0Ause strict;=0Ause war= nings;=0Ause feature 'say';=0A=0Asay 'Hello!';=0A=0Aprint "How old are yo= u?";=0Amy $age =3D <>;=0Aprint "WOW! You are $age years old!";=0AThis is = my .emacs:=0A=0A; One window mode=0A (setq inhibit-startup-screen t)=0A;;= perl mode pde=0A (add-to-list 'load-path "~/elisp/pde/lisp")=0A (load "p= de-load")=0A;; python emacs-elpy=0A; (setq python-shell-interpreter "pyth= on3")=0A; (setq elpy-rpc-python-command "python3")=0A;(elpy-enable)=0A;; = tab indent=0A;; set default tab char's display width to 4 spaces=0A(setq-= default tab-width 4) ; emacs 23.1 to 26 default to 8=0A=0A;; set current = buffer's tab char's display width to 4 spaces=0A(setq tab-width 4)=0A;; B= asicCustomization=0A(setq inhibit-startup-screen t) ;; disable welcome me= ssage=0A(global-linum-mode t) ;; enable line numbers globally=0A(setq lin= um-format "%4d u2502") ;; format line number spacing