~ubuntu-branches/ubuntu/raring/ess/raring-proposed

« back to all changes in this revision

Viewing changes to lisp/ess-site.el

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2009-01-23 12:00:52 UTC
  • mfrom: (1.2.9 upstream) (3.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20090123120052-lanxg8rk58s6a5vf
Tags: 5.3.11-1
New upstream release 

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
;; load code to figure out what version/strain of Emacs we are running
138
138
;; must come *AFTER* load-path is set !
139
139
 
140
 
;;; The following require sets the following ess-local-custom-available to
141
 
;;; true if custom is provided at this point.  If we think it will be,
142
 
;;; then we can use the following (uncommented out) to make sure that
143
 
;;; it will be.  (AJR).
 
140
;;; The following require sets ess-local-custom-available to
 
141
;;; true if custom is provided at this point.  
144
142
(require 'ess-emcs)
145
 
;; This will override what Emacs thinks it can detect.
146
 
;;(setq ess-local-custom-available t); if custom is available, uncomment
 
143
;;; If it is not provided, but we think it will be available when necessary,
 
144
;;; then we can use the following line (uncommented) to make sure that
 
145
;;; it will be used.  If you have to ask, then you don't need this.
 
146
;;(setq ess-local-custom-available t)
147
147
 
148
148
;; SJE Thu 13 May 2004
149
149
;; Maybe ess-etc-directory should not be defcustom, since its value
197
197
;;; Files ending in .St are considered to be S transcript files
198
198
;;;
199
199
;;; NB: in standard Emacs, files ending in .s are assembler files.  If you
200
 
;;; want to use assembler, you can comment the appropriate line below.  Of
201
 
;;; course, different users will want different modes.  If a user wants to
202
 
;;; restore default the default modes for assembly file extensions, the
203
 
;;; following can go into ~/.emacs:
 
200
;;; want to use assembler.  If a user wants to
 
201
;;; restore the default modes for assembly file extensions, the
 
202
;;; following can go into ~/.emacs or ~/.xemacs/init.el
204
203
;;;
205
204
;;;  (add-hook 'ess-mode-hook 'ess-restore-asm-extns)
206
205
;;;  (add-hook 'inferior-ess-mode-hook 'ess-restore-asm-extns)
292
291
;;(setq-default inferior-OMG-program-name "/home/rossini/src/anoncvs/Omegahat/org/omegahat/bin/omegahat")
293
292
(setq-default inferior-OMG-program-name "omegahat")
294
293
 
295
 
;;; ESS on the Windows NT/95/98 assumes you have installed gnuclient
296
 
;;; with your NTemacs.
297
 
;;; http://www.cs.washington.edu/homes/voelker/ntemacs/contrib/gnuserv.zip
298
 
;;; Should you choose not to use gnuclient, you will need to uncomment
299
 
;;; the notepad definitions below.
300
 
;;;
301
 
;;; Send Print from S+4 GUI Commands window print icon to emacs.
302
 
;;; StatSci's S+4 default print destination for the commands window is
303
 
;;(setq-default inferior-S+4-print-command "notepad/p")
304
 
;;;
305
294
;;; The line below is the ESS default and sends the commands window
306
295
;;; to emacs, giving the user the opportunity to
307
296
;;; (1) edit the output into a clean ess-transcript file before printing, or
428
417
 
429
418
;; (1.9) Toolbar support
430
419
 
431
 
;; To remove toolbar support under ESS, either comment-out
432
 
;; (require 'ess-toolbar) below, or add "(setq ess-use-toolbar nil)"
433
 
;; to your .emacs before (require 'ess-site).
 
420
;; To remove toolbar support under ESS, add "(setq ess-use-toolbar nil)"
 
421
;; to your ~/.emacs or ~/.xemacs/init.el before (require 'ess-site)
434
422
(require 'ess-toolbar)
435
423
 
436
424
;;; 2. Site Specific setup
542
530
(require 'essd-r)
543
531
(ess-check-R-program-name) ;; -> (ess-find-newest-R) if needed, in ./essd-r.el
544
532
 
545
 
;;; 3. Customization (and commented out examples) for your site
 
533
;;; 3. Customization (and examples) for your site
546
534
;;;; ===============================================
547
535
 
548
536
 
549
537
;;; (3.01) SOME PEOPLE (who will remain nameless) worry that novices
550
538
;;; won't like fancy buffer names for their first (and only :-)
551
 
;;; process.  To number all processes, uncomment the next line.
 
539
;;; process.  To number all processes:
552
540
;;(setq ess-plain-first-buffername nil)
553
541
 
554
542
;;; (3.02) Some people have requested using the program name as part
575
563
;;; often unnecessarily large. The framepop package makes such
576
564
;;; windows appear in a separate, shrink-wrapped frame. This will
577
565
;;; also affect other "temporary" windows such as those produced by
578
 
;;; C-h k, etc.  To enable, uncomment both lines of code below).
 
566
;;; C-h k, etc.  To enable:
579
567
;;;
580
568
;;; Works only with Emacs at this time.
581
569
;; (cond (window-system
646
634
 
647
635
;;; Formatting and indentation patterns are defined in ess-cust.el, please
648
636
;;; see ess-cust.el for exact definitions of these variable settings.
649
 
;;; To change them, uncomment one or both of the following lines:
650
 
;;; (eg, follow changes suggested by Terry Therneau)
 
637
;;; To change them (eg, follow changes suggested by Terry Therneau), 
 
638
;;; you need one or both of the following lines:
 
639
;;; 
651
640
;;(setq ess-fancy-comments nil)
652
641
;;(setq ess-default-style 'CLB)
653
642
 
664
653
;;;   1b. Optional: TAB is bound to tab-to-tab-stop and inserts up to 4
665
654
;;;       columns at a time.  C-TAB moves backwards and deletes characters
666
655
;;;       up to 4 columns at a time.
667
 
;;;       Uncomment the following line for the optional behavior.
 
656
;;;       The following line is for the optional behavior.
668
657
;;;(setq ess-sas-edit-keys-toggle t)   ;; optional TAB and C-TAB in sas-mode
669
658
;;;   Use the function call (ess-sas-edit-keys-toggle)
670
659
;;;   to change the setting after the first SAS-mode buffer has been created.
672
661
;;;
673
662
;;;   2. Managing submitted SAS jobs with function keys.
674
663
;;;   2a. Default: To define the function keys in ESS[SAS] mode only,
675
 
;;;   uncomment at most one of the following two lines.
 
664
;;;   you will need, at most, one of the following two lines.
676
665
;;;(setq ess-sas-local-unix-keys t)  ;; F2-F12 bound in ESS[SAS] mode
677
666
;;;(setq ess-sas-local-pc-keys t)    ;; F2-F12 bound in ESS[SAS] mode
678
667
;;;
679
668
;;;   2b. Options: To define the function keys in all modes,
680
 
;;;   uncomment at most one of the following two lines.
 
669
;;;   you will need, at most, one of the following two lines.
681
670
;;;(setq ess-sas-global-unix-keys t) ;; F2-F12 bound in all modes
682
671
;;;(setq ess-sas-global-pc-keys t)   ;; F2-F12 bound in all modes
683
672
;;;
684
673
;;;   3. If it is more convenient to have "*Async Shell Command*"
685
 
;;;      in same-window-buffer-names, then uncomment the following line
 
674
;;;      in same-window-buffer-names, then:
686
675
;;;(ess-same-window-async)
687
676
;;;
688
677
;;;(defvar sas-program "sas" "*Name of program which runs sas.")