is there a way to get different shortcut for different file types? Tipically I use F12 to compile. It runs make -f. I\'d like to have F12
make -f
The clean way to add bindings on a file type basis is to the bindings to the modes themselves:
(define-key org-mode-map (kbd "") 'org-export-as-html)
See Changing Key Bindings, Keymaps, and Major Mode Conventions