[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: can "edit filename" open the new file in emacs itself?
From: |
Rob Mahurin |
Subject: |
Re: can "edit filename" open the new file in emacs itself? |
Date: |
Fri, 18 Dec 2009 09:05:42 -0500 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Fri, Dec 18, 2009 at 01:51:40PM +0100, address@hidden wrote:
> I am using octave from within emacs. The command "edit filename" at the
> octave shell promp opens notepad editor in windows and some other editor
> in ubuntu. But I want that it is opened in my emacs itself. Is this
> possible?
Yes. Within emacs (possibly in an init file), say
M-x server-start
Then from octave,
edit('editor','emacsclient %s')
or
edit('editor','emacsclient -n %s')
Cheers,
Rob