Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^12: Backdating strict

by LanX (Saint)
on Nov 20, 2020 at 09:22 UTC ( [id://11123875]=note: print w/replies, xml ) Need Help??


in reply to Re^11: Backdating strict
in thread Backdating strict

> but vim has a much shorter start-up time, so it works better for quick edit jobs.

try emacs -nw -Q (I have this aliased to emq in my linux environments)

running emacsclient helps too.

> As it is, I just turn on line and column display in the modeline and scroll.

Still, the necessity to read the error line and file from the terminal to manually jump to the error inside emacs would drive me crazy. Probably your scripts are rather short, my projects span a douzen of modules.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^13: Backdating strict
by jcb (Parson) on Nov 21, 2020 at 00:11 UTC

    Yes, bypassing the startup file makes Emacs start faster, but at the cost of my customizations not being effective. At that point, I may as well use vim or nano.

    I never got around to setting up emacsclient and now routinely use multiple Emacs sessions, so I have doubts about its practicality for me. As to the resource usage of this solution, well... according to top, at the moment, all of my Emacs instances combined have about the same RAM footprint as the browser session dedicated to PerlMonks — the other browser sessions are much larger.

    You are also correct that my projects are smaller, and I work very carefully to build up modules before using them. It is very rare for me to get an error in some module other than the one I am currently working on (and therefore already have in an Emacs frame) because I test each part very thoroughly. Devel::Cover is useful here. I probably would find a way to use Emacs M-x compile if I had projects spanning as many files as yours, with errors as scattered as you seem to encounter, although, for now, M-x speedbar meets my needs for quick file navigation.

      emacsclient needs no setting up. Just add
      (server-start)

      to your startup file and open a file using emacsclient instead of emacs (I defined a shell function ec for that, and evan made it start emacs if it's not already running).

      The only difference now is you close the files with C-x # instead of C-x k, but I wrote the following lisp function

      (defun server-edit-or-close (buf) "Close the buffer regardless of whether it's a server file or not." (interactive "bKill/finish buffer: ") (if server-buffer-clients (progn (switch-to-buffer buf) (server-edit)) (kill-buffer)))

      and bound it to

      (global-set-key "\C-xk" 'server-edit-or-close)

      and I can close a file using the standard way no matter how it was opened.

      map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11123875]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (8)
As of 2024-04-24 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found