'borrow' beginning of kwbeam's init.el for flycheck's sake