From 1846 onwards till his appointment as consul in 1868, Hannay worked on the press and at literature. His first engagement was as a reporter on the
Morning Chronicle, in which capacity he relied more on his remarkable memory than on his knowledge of shorthand. In the meantime, he was reading zealously in the
British Museum. At the end of 1847, he worked with
Henry Sutherland Edwards on
Pasquin, a very short-lived comic paper, and the forerunner of the somewhat happier
Puppet Show, which lasted from 1848 to 1849. In 1848, he began using his naval experiences, and wrote the first of the stories which were afterwards collected in his
Sketches in Ultramarine, published in 1853. In 1848, he first made the acquaintance of
Thackeray and
Carlyle, to whom he was proud to acknowledge his obligations. He soon improved his literary connection, and worked for papers of good position, for the quarterlies and magazines, till he became editor of the
Edinburgh Evening Courant in 1860. During these years he published his best work, his two naval novels,
Singleton Fontenoy (1850) and
Eustace Conyers (1855), and the volume of lectures on
Satire and Satirist, delivered at the Literary Institution, Edward Street, Portman Square, in 1853, and collected in book form in 1854. It was during these years also that he began to write the essays to the
Quarterly, afterwards collected into a volume, and that he taught himself to read Greek. In 1857, he contested without success the representation of the
Dumfries Burghs in parliament. He stood as a Tory, and was defeated by
William Ewart. From 1860 to 1864, he edited the
Edinburgh Evening Courant. The zeal with which he attacked conduct and persons he disliked caused his management of the paper to be somewhat conspicuous. In 1863 he was elected a Fellow of the
Royal Society of Edinburgh, his proposer being
William Edmonstoune Aytoun. ==Consul==