Home
The Toolkit for Online Communities
15939 Community Members, 1 member online, 2384 visitors today
Log In Register

Forum OpenACS Q&A: Response to psql and emacs

OpenACS Home : Forums : OpenACS Q&A : Response to psql and emacs : One Message

+
7: Response to psql and emacs (response to 1)
Posted by Dan Wickstrom on
I've used something like the following to map the up/down arros keys in xemacs:


(add-hook 'shell-mode-hook 
	  (function 
	   (lambda ()
	     (define-key comint-mode-map 'up 'comint-previous-input)
	     (define-key comint-mode-map 'down 'comint-next-input))))

I haven't tested this with sql-postgresql and sql-oracle, but I'm assuming that they're both built on top of comint. You will probably just need to add this to your .emacs file and change the hook name.