[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs and point-and-click configuration in Gnome3
From: |
David Kastrup |
Subject: |
Re: emacs and point-and-click configuration in Gnome3 |
Date: |
Tue, 31 Dec 2013 21:44:37 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Federico Bruni <address@hidden> writes:
> 2013/12/31 David Kastrup <address@hidden>
>
>> > The command:
>> > gnome-open textedit:///etc/issue:1:0:0
>> >
>> > opens Frescobaldi, but:
>> >
>> > 1. the cursor stays on top of the file, regardless of the values I put
>> > 2. when I close Frescobaldi window, a new Frescobaldi window pops up.
>>
>> I think that Frescobaldi is supposed to do its own point-and-click deal,
>> but you may need to start the previewer from Frescobaldi for that.
>>
>>
> Yes, it's non-sense pointing evince to Frescobaldi.
> I'd like to set gvim or emacs as alternatives.
>
>> If I comment out the EDITOR variable in .bashrc, gnome-open launches emacs
>> > and:
>> >
>> > 1. the cursor is correctly located in the position specified
>> > 2. two windows of emacs are opened at the same time (this happens also
>> when
>> > I click on Evince)
>>
>> Configure EDITOR to use emacsclient rather than emacs, and run M-x
>> server-start RET (or do it from .emacs) in the Emacs that is supposed to
>> catch the point-and-click.
>
> Mmmh, too complicate, I'll set gvim.
Huh? It's not complicated at all. It's one
(server-start)
in your .emacs file, and one
export EDITOR=emacsclient
in your .bashrc file.
> However, it seems to me that the configuration in .bashrc only works for
> URIs opened using gnome-open.
> When I click on Evince, .bashrc is totally ignored
.profile should usually load .bashrc as well and be run on login.
--
David Kastrup