Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • M-x pc-selection-mode

    Welcome to emacs.

  • ain't nothing as good as some elisp hacking :-)

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;
    ; Selecting text with Shift+arrows, like in Windoze
    ;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    (defun previous-line-and-select (&optional arg)
      (interactive "_p")
      (if (null (region-active-p))
          (set-mark-command nil))
      (previous-line arg))

    (defun next-line-and-select (&optional arg)
      (interactive "_p")
      (if (null (region-active-p))
       

  • BTW; is there any clever way to make the currently edited file +w?

    Any shortcut for "this file" when using (M-!) ?
  • There is an old "emacs quick reference" (aka cheat sheet) floating around that you can print out.

    Regarding changing file mode, do that from `dired` (when you edit a directory, just like a file) by typing 'M' with the cursor on the line the file is listed on

  • Actually, I have a problem with newly opened files.

    I have (setq truncte-lines t) in my .emacs file, but it doesn't seem to work for newly opened files, and I have to "M-x toggle-truncate-lines" for each of them.

    How do I make it do that automagically?
    • Because it's a buffer-local variable. You have to:
      (setq-default truncate-lines t)
      which affects the value for each new buffer. You can determine this by asking for the help on that variable and noticing that it says "automatically becomes buffer-local when set in any fashion".

      Generally, for most user settings, the modern "customize" mechanism is much easier. For example, M-x customize-apropos RET truncate RET brings up the settings for this variable.

      --
      • Randal L. Schwartz
      • Stonehenge
  • I'm trying to use emacs, for a number of Good Reasons, but I find a one thing rather painful.

    Startup times are slow, compared to other editors. In my work, I hit a lot of different systems and investigate problems and questions. It's so much easier to fire up my personal vi-like favorite editor, vile, than it is to start emacs.

    Do people seriously use emacs with Ange-FTP and the various shell/telnet modes to manage a lot of different environments and stay in one emacs all day? I think this might be a Go

    • "screen emacs" is your friend. I fire up an Emacs only about once a month or so on each machine I visit. Then, I just reuse it and abuse it.

      I also read mail, news, and connect to IRC from within Emacs. I use dired mode to avoid ever typing "rm mumble*mumble". I use shell mode to fire up a few shells inside Emacs, to allow me a consistent cut-paste environment.

      At the risk of repeating myself, "screen emacs" is your friend.

      --
      • Randal L. Schwartz
      • Stonehenge
      • Thanks for the pointer. I've been using it at home on my Linux machine like that a lot. I read email and news, connect to IRC and I've even been playing with the various WWW browsers from within emacs as an immersive technique.

        I doubt that I could really keep an emacs running for days on the work machines. Some sys admin might object and they're often rebooting, but I could setup to fire off a set of rsh commands from my desktop each morning as I'm starting up to startup my various emacs sessions that I

    • Ange-FTP (or rather it's successor) is pretty good, but these days I just let KDE handle that for me. It can deal with SCP in addition to FTP, and lets you edit in whichever editor you like.