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

Re: [sc-users] [linux] scel add key binding in .emacs



On Sunday 10 May 2009 09:32:39 sh0099 wrote:
> thanks this works.
> i will write something about this into the EmacsEditor helpfile in the
> next days.
> it is cool to have keys in the editor which control sc.
>
> andersvi@xxxxxxxxxx schrieb:
> > s> i like to add some keybinding to the sclang-mode
> > s> i came as far as that:
> > (add-hook 'sclang-mode-hook
> > '(lambda nil
> > (define-key sclang-mode-map "\C-x\M-x"
> > '(lambda () (interactive)(sclang-eval-string "1+2" 1)))))


You can also send lisp strings to emacs from SC, so you may be able to program these on-the-fly.
See the Emacs class.


sincerely,
Marije