Only use which-function-mode in programming modes
Remove unnecessary (require 'glasses)