Tag Info

New answers tagged


If you don't want to modify MenuSetup.tr you can easily modify init.m with: SetOptions[ $FrontEnd, NotebookEventActions :> { {"MenuCommand", "New"} :> CreateNotebook["Default"] } ] "MenuCommand" example


If one feels comfortable modifying MenuSetup.tr, replacing its seventh line with MenuItem["&Notebook (.nb)", KernelExecute[CreateNotebook["Default"]], MenuEvaluator->"System", Method -> "Queued", MenuKey["n", Modifiers->{"Control"}]], will result in Ctrl+n creating a new notebook with a window size of ...


This doesn't seem to work on Mac You can check with $PreRead = Echo (or Print in case of V<10.3) that +1 returns RowBox[{+,1}] in FrontEnd and "+1" in Kernel. So the solution is to use: $PreRead = StringReplace[#, StartOfString ~~ op : "*" | "+" | "-" | "/" :> "%" <> op] &


My definition of $Pre does not work as intended. I will edit later. See also edits of this answer. I originally intended a solution similar to that in Kuba's answer. I got confused because $PreRead does not do anything for me in a kernel window, which also seems to be the case for the OP, but not for Kuba. The kernel does not deal with boxes. In the front ...


This is how you can customize given notebook. Needs some testing but seems to work. It distinguishes users based on $UserName but you can use $MachineID or whatever. CurrentValue[ EvaluationNotebook[], {TaggingRules, "Collaborators"}] = { "Kuba" -> Orange, "Friend" -> Red}; SetOptions[ EvaluationNotebook[], CellDynamicExpression :> ...


One can change MenuItem["Red", FontColor->RGBColor[1, 0, 0]], to, e. g., MenuItem["Red", FontColor->RGBColor[1, 0, 0], MenuKey["r", Modifiers->{"Control"}]], in the MenuSetup.tr file. This has the additional advantage of adding the shortcuts to the menu for easier lookup.

Top 50 recent answers are included