# Loading custom notation on startup without showing the Notation palette

I was creating some custom notations using the Notation package and it works fine. I put it in my default personal package, and it loads fine on Mathematica's startup. To make it complete I need just one more thing. How can I suppress the Notation palette from appearing every time I launch Mathematica? Is there some command that I can put into my package?

-

## 2 Answers

The answer is to set

NotationAutoLoadNotationPalette = False


prior to loading Notation, e.g.

NotationAutoLoadNotationPalette = False
(* .... *)
Needs["Notation"]


or

NotationAutoLoadNotationPalette = False
(* .... *)
BeginPackage["MyPackage", {"Notation"}]

-
Exact what I need! Tks! –  Murta Oct 7 '12 at 14:17

I recommend using Block:

Block[{NotationAutoLoadNotationPalette = False},
Needs["Notation"]
]


Or:

Block[{NotationAutoLoadNotationPalette = False},
BeginPackage["MyPackage", {"Notation"}]
]


This way you do not prevent the palette from displaying when the user calls << Notation`, which could be aggravating.

-
Now I understand how it works!.. Nice block application. tks –  Murta Jan 31 '13 at 11:04
@Murta I love those moments of recognition. :-) –  Mr.Wizard Jan 31 '13 at 11:09
You deserve, sorry for the delay! %) –  Murta Jan 31 '13 at 11:21
@Murta I think perhaps my prior comment was misunderstood. I was referring to moments of suddenly understanding something, which I find a pleasant sensation. I did not mean that I was seeking personal recognition, though I admit that too can be nice. –  Mr.Wizard Jan 31 '13 at 11:25
Wow!.. yes.. I really misunderstood. But no problems because you still deserves .. rsrs. Now, about the intelectual recognition moment, yes! it's amazing. –  Murta Jan 31 '13 at 11:29