Preheat oven to 350°F (175°C) and line a muffin tin with 12 liners.
Whisk flour, cocoa powder, baking soda and salt together.
Cream butter and sugar until fluffy, then beat in eggs one at a time.
Alternate adding the dry ingredients, coffee and buttermilk into the batter.
Divide batter among the liners and bake 16 to 18 minutes.
Cool completely, then pipe on the peppermint buttercream.
Finish with a scatter of crushed candy canes.