This tip is about mapping keys. This example will map the compile function to F10 and will map F11 to jump to the next error. By default to compile something you would have to issue the compile command by using Mx compile and then to go to the next error Cx `. However this tip makes it even easier. Just add the following lines inside your custom hook as seen in my previous post.
Add these lines:
(local-set-key [f10] 'compile)
(local-set-key [f11] 'next-error)
Now you will be ready to compile your code with F10 and then jump to the next error with F11. If you want to change it to a different key just change [f10] to the key you want.
Tuesday, June 20, 2006
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment