Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror

Comment Turbo Legacy: Keyboard Shortcuts (Score 1) 155

This is too cool... TP 5 is the first real compiler I used, about 10 years ago. Had to steal it at the end of my first class, just in case I would need it at home one day (I didn't have a computer to run it on, but hey). And the environment was awesome, much less confusing than TP 6 IMHO. Hell, I still use the same keyboard shortcuts in XEmacs!

Tired of C-x-s? Would rather make use of those neat (and otherwise useless) function keys at the top of your keyboard? An elegant solution to a common problem, re-bind Emacs commands to their Turbo shortcuts. With judicious of Meta and Control, you can get a lot of power at your fingertips. Plus the nostalgia factor... ;)

Add this to your .emacs:

; delete is real delete, not freaking backspace
(setq delete-key-deletes-forward t)

(global-set-key [f1] 'info) ; F1 is Help
(global-set-key [(meta f1)] 'describe-function)
(global-set-key [(control f1)] 'describe-key)

(global-set-key [f2] 'save-buffer) ; F2 is Save
(global-set-key [(meta f2)] 'write-file)

(global-set-key [f3] 'find-file) ; F3 is Open
(global-set-key [(meta f3)] 'split-window-vertically)
(global-set-key [(control f3)] 'make-frame)

(global-set-key [f4] 'kill-buffer) ; F4 is Close
(global-set-key [(meta f4)] 'delete-window)
(global-set-key [(control f4)] 'delete-frame)

(global-set-key [f5] 'advertised-undo) ; F5 is Undo
(global-set-key [f6] 'kill-region) ; F6 is Cut
(global-set-key [f7] 'copy-region-as-kill) ; F7 is Copy
(global-set-key [f8] 'yank) ; F6 is Paste

;(global-set-key [f9] 'compile)
;(global-set-key [f10] 'switch-to-buffer)
;(global-set-key [f11] 'enlarge-window)
;(global-set-key [f12] 'make-frame)

; auto-indent after return
(global-set-key [(return)] 'newline-and-indent)

Mmmmh, and that was all of 10 years ago... Maybe I should say that in my resume "Been programming for ten years".

Anyways, I just downloaded the beast, and sure enough, it runs great on NT. The compile+run time is so fast, I did it three times before realizing I had to switch to user window to see the output!

TP rocks...

Slashdot Top Deals

If an experiment works, something has gone wrong.

Working...