lilypond-user
[Top][All Lists]
Advanced

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

Re: point and click brings up two emacs instances


From: Mats Bengtsson
Subject: Re: point and click brings up two emacs instances
Date: Mon, 10 Nov 2008 00:42:02 +0100
User-agent: Thunderbird 2.0.0.17 (X11/20080925)

lilypond-invoke-editor first tries to run emacs-client, which will
open the file in an existing emacs if
1. emacs was already started (otherwise lilypond-invoke-editor will start it using the "emacs" command).
2. The corresponding server is running in Emacs, i.e. you have a line like
(server-start)
in your .emacs file or you have used the customization features in Emacs to set server-mode true.

Note also that if you have the any of the environment variables $EDITOR, $LYEDITOR or $XEDITOR set, then other things might happen.

  /Mats


Rob Canning wrote:
hi,

i have this problem using point and click:

when i click on the pdf two instances of emacs start - this is nice but one is plenty :)

any clues?

i am running GNU/Linux pure:dyne (distro based on Debian lenny)

GNU LilyPond 2.11.63

xpdf version 3.02

GNU Emacs 22.2.1

i have this in .xpdfrc

urlCommand     "lilypond-invoke-editor %s"

this in my .emacs

;#####lilypond emacs mode#####

(autoload 'LilyPond-mode "lilypond-mode")
(setq auto-mode-alist
      (cons '("\\.ly$" . LilyPond-mode) auto-mode-alist))

(add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock)))

(setq locale-coding-system 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(set-selection-coding-system 'utf-8)
(prefer-coding-system 'utf-8)

.emacs stuff is not relevant i guess...not sure what else i should tell you...

thanks

rob


_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user


--
=============================================
        Mats Bengtsson
        Signal Processing
        School of Electrical Engineering
        Royal Institute of Technology (KTH)
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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