1720, "magic, enchantment" (especially in phrase to cast the glamour), a variant of Scot. gramarye "magic, enchantment, spell," alt. of Eng.
grammar (q.v.) with a medieval sense of "any sort of scholarship, especially occult learning." Popularized by the writings of Sir