I have created a MenuItem that switches Wholecellgroupopeners On and Off for the currently selected notebook using the Control+w shortcut.
FrontEndExecute[
FrontEnd`AddMenuCommands["DuplicatePreviousOutput", {Delimiter,
MenuItem["WholeCellGroupOpener",
FrontEnd`KernelExecute[
SetOptions[SelectedNotebook[],
"WholeCellGroupOpener" -> !
CurrentValue@
Options[SelectedNotebook[], "WholeCellGroupOpener"]]],
MenuKey["w", Modifiers -> {"Control"}],
System`MenuEvaluator -> Automatic]}]]
It would like to install this MenuItem in the FrontEnd so that it's installed at every startup. I can't seem to make it work. The MenuItem never shows up. From other posts that I am reading it seems that I need to:
- Save this as an init.m file and
- Place it somewhere in the startup path
I tried and failed. Can you help me? Maybe I'm not saving the file as a init.m file correctly. Do I need to use Xcode? Also, where is the best place to store the init.m file?
Can I store it somewhere in the user/library/mathematica/ path or does it need to go in the path Applications/Mathematica/Content/ path? I would prefer the former.