[ESS-bugs] [ESS] Getting SAS to work
Cameron Hooper
chooper at umich.edu
Sat Jul 30 06:04:42 CEST 2005
I tried your suggestion but it did not work for me. I reduced my .emacs
down to the following:
add-to-list 'load-path "~/emacs")
(load "~/emacs/ess/lisp/ess-site")
(load-library "ess-site")
(save-excursion ;;workaround for keys stolen by
(switch-to-buffer "unlikely-name.sas") ;;workaround
ess-sas-local-pc-keys
(sas-mode) ;;workaround
(define-key sas-mode-local-map "\C-c\C-r" 'ess-eval-region)
;;workaround
(kill-buffer "unlikely-name.sas")) ;;workaround
I assume when you say "after the ess-site.el" you mean after the (load
"~/emacs/ess/lisp/ess-site") line. Have I misunderstood?
I am unsure if I should have both the `load' and the `load-library'
lines so I tried all combinations of keeping both and eliminating each
one in turn. I still have to change the key definition in the
minibuffer each time I restart emacs.
I also replaced (load-library "ess-site") with (load-library
"~/emacs/ess/lisp/ess-site") but this didn't fix the problem.
Cameron
On Jul 29, 2005, at 11:13 PM, Richard M. Heiberger wrote:
> The following lines must be placed in .emacs after the ess-site.el
>
> (load-library "ess-site") ;;; ESS for S-mode and SAS-mode
> (save-excursion ;;workaround for keys stolen by
> (switch-to-buffer "unlikely-name.sas") ;;workaround
> ess-sas-local-pc-keys
> (sas-mode) ;;workaround
> (define-key sas-mode-local-map "\C-c\C-r" 'ess-eval-region)
> ;;workaround
> (kill-buffer "unlikely-name.sas")) ;;workaround
>
>
More information about the ESS-bugs
mailing list