-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.m
51 lines (45 loc) · 1.46 KB
/
init.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env wolframscript
(* ::Package:: *)
(* Linked to `~/.Mathematica/Autoload/FrontEnd/init.m` *)
"### Spelunking";
Quiet[Get["Spelunking`"];];
(*
Quiet[Get["GeneralUtilities`"];];
Unprotect[GeneralUtilities`Definitions];
GeneralUtilities`Definitions[
GeneralUtilities`Code`PackagePrivate`sym_Symbol
] := Internal`UnsafeQuietCheck[
Join @@ DeleteCases[{}][
(#1[GeneralUtilities`Code`PackagePrivate`sym] &) /@ {
DownValues,
DefaultValues,
GeneralUtilities`PackageScope`OwnDefs,
SubValues,
GeneralUtilities`Code`PackagePrivate`UpDefs,
FormatValues,
GeneralUtilities`Code`PackagePrivate`AttributeDefs,
GeneralUtilities`Code`PackagePrivate`OptionDefs,
GeneralUtilities`Code`PackagePrivate`KernelPlaceholderDefs
}
],
{}
];
Protect[GeneralUtilities`Definitions];
*)
SetOptions[Language`ExtendedDefinition, ExcludedContexts -> {}];
SetOptions[Language`ExtendedFullDefinition, ExcludedContexts -> {}];
"### Beep";
$Post = (Beep[];(*Speak["Wow"];*)#) &;
(* $Post =.; *)
"### Autosave";
SetOptions[$FrontEndSession, NotebookAutoSave -> True]
(*
"### Add quit kernel shortcut";
FrontEndExecute[
FrontEnd`AddMenuCommands["MenuListQuitEvaluators", {MenuItem[
"Quit Default"
, FrontEnd`KernelExecute[ToExpression["Quit[]"]]
, MenuKey["q", Modifiers -> {"Control", "Shift"}]
, System`MenuEvaluator -> Automatic
]}]]
*)