MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

InitializationCell -> Toggle shortcut key

  • To: mathgroup at
  • Subject: [mg56778] InitializationCell -> Toggle shortcut key
  • From: "Trevor Baca" <trevorbaca at>
  • Date: Thu, 5 May 2005 06:04:38 -0400 (EDT)
  • Sender: owner-wri-mathgroup at


i'd like to create a keyboard shortcut to toggle initialization cell

reading through the archives and studying a post from paul hinton, i
edit the file (deeply buried in the filesystem)
to include the following line:

Item[KeyEvent["i", Modifiers -> {Command, Control}], InitializationCell
-> Toggle]

i save, restart, and blow up. (something about a syntax error on line
52 of the file that reads \tItem[KeyEvent[\".)

my intuition of what's wrong is that i stole the InitializationCell ->
Toggle bit from in the same directory and that a rule like
that won't do as the second argument to Item[ ]; my guess is that i'll
need a three-part FontEndToken[ ] object to pass into the second
position of Item[ ], but i haven't a clue as to what the correct
structure for that FrontEndToken[ ] would be.

anyone have any suggestions on formulating an initialization cell
toggle Item[ ] for


  • Prev by Date: Controlled evaluation of functions
  • Next by Date: Re: Variant of inner Product ...
  • Previous by thread: Re: Controlled evaluation of functions
  • Next by thread: Re: InitializationCell -> Toggle shortcut key