On Thursday 02 November 2006 10:14, bertrand greslier wrote:
> thank for the bash lecon, it is very interresting to discover new function
> like pushd for me...
Oh should mention, there were a couple of minor problems with the script if
anybody else happens to try using it. 1 was that somehow I neglected a `do'
in the semantic.cache line. If you don't use semantic you won't need that
anyway. The other problem was that function fail { echo "Error: $1" &&
exit -1 } should not have all been on the same line. I tried to pretty it up
before I sent it, and neglected to test it... which is always a bad idea.
Regarding bash. One very nice function which requires a bit of regexp skill is
mmv
`mmv "clear_*" "#1"'
will move files named clear_a clear_b clear_c to a b c. I've found the
O'Reilly Bash book well worth the price:
http://www.oreilly.com/catalog/bash3/index.html
as is Linux in a Nutshell.
> For emacs users, I have an interessant tips to add mouse scroll.
>
> add in your .emacs config file this lines
>
> ;;=========================================================================
>==== ;; scroll on mouse wheel
> ;;=========================================================================
>==== (defun up-slightly () (interactive) (scroll-up 5))
> (defun down-slightly () (interactive) (scroll-down 5))
> (global-set-key [mouse-4] 'down-slightly)
> (global-set-key [mouse-5] 'up-slightly)
>
> (defun up-one () (interactive) (scroll-up 1))
> (defun down-one () (interactive) (scroll-down 1))
> (global-set-key [S-mouse-4] 'down-one)
> (global-set-key [S-mouse-5] 'up-one)
>
> (defun up-a-lot () (interactive) (scroll-up))
> (defun down-a-lot () (interactive) (scroll-down))
> (global-set-key [C-mouse-4] 'down-a-lot)
> (global-set-key [C-mouse-5] 'up-a-lot)
>
> I cannot separate any more from that.
I use emacs from cvs, so it has mouse scrolling. What I would like to be able
to do is scroll from the keyboard without having the cursor hit the top or
bottom or jumping several lines. There's probably a way to do that, but I
haven't messed with it too much.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/