[Top][All Lists]

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

Re: putting it all together was scheme custom keymap

From: aaron mehl
Subject: Re: putting it all together was scheme custom keymap
Date: Fri, 18 Sep 2020 08:34:35 -0400

Well I did test each file and they all worked but I didn't click on the menu item to see if it caused the proper result, my shortcoming it seems.
So I will take a few steps back and then I  can move forward.
p.s. us non techies find detailed instructions like on these emails most helpful.

Sent from">Mailspring, the best free email app for work
On Sep 18 2020, at 7:32 am, Richard Shann <> wrote:
On Fri, 2020-09-18 at 05:49 -0400, aaron mehl wrote:
> Hi Richard thanks for the heads up, you were right I needed to post
> the script in order to  get it working.
> The conventions you mentioned of <> () ""  are they discussed in the
> docs since I am totally a newbie on this it would be nice to have had
> this written out.

well the convention of writing <your name> meaning that you write your
name in the place where <your name> appears is just a common parlance
among techies.
The () are the indicators for a list in the Scheme programming language
- the most fundamental bit of syntax. The "" are also Scheme syntax
denoting a string.

But the convention that the Scheme procedure corresponding to a Denemo
command of name <thecommandname> is d-<thecommandname> is mentioned in
the docs in section 29, Writing Scheme Scripts.

However, most people pick up this stuff by seeing examples and by
testing out a small sample. So before creating all 18 shortcuts it
would make sense to create just one of the note-insertion commands,
check that it works when executed from the menu, then create just one
of the (d-AddKeybinding ...) procedures and test it out by executing it
in the Scheme window and seeing if the keypress does indeed execute the
desired command and then turning that into the mode-switch command.
When that is working you would add more of the same using the right-
click->"Save Script from Scheme Window" to override the first version
of your mode change command with the new keybindings.


Sent from Mailspring
reply via email to

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