[ESS] skeleton-pair and XEmacs (Was: skeleton-pair and {})

Rodney Sparapani rsparapa at mcw.edu
Tue Aug 4 18:26:39 CEST 2009


Rodney Sparapani wrote:
> 
> (global-set-key "{" '(lambda ()
> (interactive)
> (let ((save-point nil))
>  (insert "{")
>  (setq save-point (point))
>  (insert "}")
>  (goto-char save-point))))

And just for fun, you can make this concisely/elegantly:

(global-set-key "{" '(lambda ()
  (interactive)
  (insert "{")
  (save-excursion (insert "}"))))



More information about the ESS-help mailing list