ratpoison-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RP] ratpoisonrc-mode.el


From: shawn
Subject: Re: [RP] ratpoisonrc-mode.el
Date: Fri Sep 7 07:38:02 2001

>Envelope-to: address@hidden
>Delivery-date: Thu, 06 Sep 2001 22:29:43 -0700
>X-Authentication-Warning: vh213601.truman.edu: jay set sender to 
>address@hidden using -f
>From: Jay Belanger <address@hidden>
>Reply-To: address@hidden
>CC: address@hidden
>Sender: address@hidden
>X-Original-Date: 06 Sep 2001 23:27:37 -0500
>Date: 06 Sep 2001 23:27:37 -0500
>
>
>An emacs mode for ratpoison, thanks Gergely!
>Any plans to be able to send commands to ratpoison from the emacs
>buffer?  I've written a few lines of elisp that would do that, if
>you're interested (although I'm sure you could do it better).

something like...

(defvar ratpoison-program "ratpoison")

(defun ratpoison-command (command)
  (interactive "sRP Command: ")
  (shell-command (concat ratpoison-program " -c \"" command "\"")))

(defun ratpoison-command-on-region (start end)
  (interactive "r")
  (mapcar 'ratpoison-command
          (split-string (buffer-substring start end) "\n")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]