lilypond-user
[Top][All Lists]
Advanced

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

Re: Point-and-click in emacs won't jump to column


From: MC
Subject: Re: Point-and-click in emacs won't jump to column
Date: Sat, 13 Mar 2004 23:54:39 +0000 (GMT)

Jan Nieuwenhuizen writes:

> It works for me (TM).  You should investigate which
step fails, set

    export XEDITOR='echo emacsclient --no-wait +%l:%c
%f'

run xdvi and shift-click.  Over here, it echoes

    emacsclient --no-wait +5:8 
/var/fred/cvs/savannah/lilypond/lilypond/pc.ly

Then, just cut and paste  or type that command, and
see what happens.

***************************
Thanks for the suggestions, that seems to have
narrowed it down to a problem with emacs.
XDVI was returning something like:

emacsclient --no-wait +24:16 /mnt/data/music/test.ly

which seems right, but typing that line into the
console still only moved the cursor to the beginning
of the line in emacs. The Mandrake 9.2 install of
emacs seemed a little peculiar anyway (eg no tutorial
file installed) so maybe the problem lies there. I'll
try reinstalling it and see if that makes a
difference. What version of emacs are other people
running?

*******************************
Jan Nieuwenhuizen writes:
Wow, that sounds like quite an effort you made.  Maybe
you can share
some of your experiences for other new users?  Things
you could not
find in the documentation, perhaps?

*******************************
I guess most people using emacs lilypond-mode will be
a bit more familiar with linux than me, but in case
it's useful to anyone else, here are a few pointers...

It took me a little while to realise that emacs
doesn't automatically create an .emacs file in your
home directory. The .emacs file I wound up creating
looked like this:

(server-start)
(setq load-path (append (list (expand-file-name
"/usr/share/emacs/site-lisp")) l
oad-path))

(autoload 'LilyPond-mode "lilypond-mode" nil t)
(setq auto-mode-alist (cons '("\\.ly$" .
LilyPond-mode) auto-mode-alist))
(add-hook 'LilyPond-mode-hook (lambda ()
(turn-on-font-lock)))

[Any suggestions for improvements gratefully accepted
:-) ]

The other thing I took a little while to figure out
was how to set XEDITOR to the right value
automatically.
I ended up adding the following 2 lines to my
~/.bashrc file [I hope this is the right place - it
seems to work]

XEDITOR="emacsclient --no-wait +%l:%c %f"
export XEDITOR

Once I'm a bit more familiar with lilypond, I'll be
happy to try my hand at writing some beginner-friendly
examples. The part I found most difficult to grasp was
tweaking the output when objects need moving. I'll try
to put together a cheat sheet showing how to move the
most common objects around for my own benefit and post
this for anyone else who is interested.
Incidentally, it would be nice (but probably
completely impractical...) if there were a simplified
syntax for adjusting the x and y offset of any object,
which seems to be the most commonly needed tweak. Off
the top of my head, something like:

c,4\mf[0,2] to offset the dynamic marking by 2

and g,16-.[-1,0]\f to shift the staccato marking

would be much more readable than all of the \once
\property... code.

Thanks for the help

Mark












        
        
                
___________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html




reply via email to

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