Add a directive handling shortcuts.