I am a massive fan of compilation mode in Emacs, and use it constantly. I have compile and recompile mapped to F11 and F12, so I just have to reach up to compile the current project:
(global-set-key [f11] 'compile)
(global-set-key [f12] 'recompile)
On my Microsoft Natural 4000 keyboard, I found I needed the following:
; sness - for some reason my Microsoft Natural 4000 maps f11 to S-f1
(global-set-key [S-f1] 'compile)
(global-set-key [S-f2] 'recompile)
Here are a couple of my other customizations:
;;
;; compilation
;;
(setq compilation-scroll-output t)
(setq compilation-window-height 16)
2 comments:
Hi,
What's 'recompile?
-M
thanks a lot for this lovely tip ... i have a question though ... when i hit f11 i then have to hit enter again as emacs shows me the compile command as
make -k
then when i hit enter it compiles it ... when i use f12 however for recompilation there is no need to hit the enter key again
any remedies ?
Post a Comment