[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: launch a program in an arbitrary frame
From: |
Emanuel Berg |
Subject: |
Re: launch a program in an arbitrary frame |
Date: |
Sat, 18 Jul 2015 10:29:44 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Vaidheeswaran C <vaidheeswaran.chinnaraju@gmail.com>
writes:
> (defun erc-other-frame (&optional server)
> (interactive (list "irc.freenode.net"))
> (switch-to-buffer-other-frame (erc :server server)))
Here is another version which lets you input a server
when calling it interactively and not just from Elisp.
If you hit RET you'll get the default value just
the same.
(defun erc-other-frame (&optional server)
(interactive (list
(let ((default "irc.freenode.net"))
(read-string (format "Server (%s): " default)
nil nil default) )))
(switch-to-buffer-other-frame (erc :server server)) )
Personally, I don't do frames, so this comment is only
about the interactive stuff.
Here is my ERC setup, so far:
http://user.it.uu.se/~embe8573/conf/emacs-init/erc-my.el
--
underground experts united
http://user.it.uu.se/~embe8573
- launch a program in an arbitrary frame, Hikaru Ichijyo, 2015/07/17
- Re: launch a program in an arbitrary frame, Vaidheeswaran C, 2015/07/18
- Re: launch a program in an arbitrary frame,
Emanuel Berg <=
- Re: launch a program in an arbitrary frame, Vaidheeswaran C, 2015/07/18
- RE: launch a program in an arbitrary frame, Drew Adams, 2015/07/18
- Re: launch a program in an arbitrary frame, Emanuel Berg, 2015/07/18
- Message not available
- Re: launch a program in an arbitrary frame, Hikaru Ichijyo, 2015/07/18
- Re: launch a program in an arbitrary frame, Eli Zaretskii, 2015/07/18
- Re: launch a program in an arbitrary frame, Óscar Fuentes, 2015/07/18
- Message not available
- Re: launch a program in an arbitrary frame, Hikaru Ichijyo, 2015/07/18
- Re: launch a program in an arbitrary frame, Emanuel Berg, 2015/07/18
- Message not available
- Re: launch a program in an arbitrary frame, Hikaru Ichijyo, 2015/07/18
- RE: launch a program in an arbitrary frame, Drew Adams, 2015/07/18