Displaying 20 results from an estimated 58 matches for "setq".
Did you mean:
set
2004 Aug 09
1
ess settings
...I quited the R session, it still asked me to
save the work space or not. I added inferior-R-args with
"--save" args. But it seemed that it had no effect. Can
you tell me how to pass the arguments other than
--no-readline to R. Thanks a lot.
Below is the part for ess settings.
(setq load-path (cons "~/.emacs.d/lisp/ess-5.2.2/lisp" load-path))
(require 'ess-site)
(setq ess-default-style "GNU")
(setq inferior-ess-program "R")
(setq inferior-R-program-name "~/.local/bin/R") ; unix systems
(setq inferior-R-args &qu...
2008 Jul 23
1
Calling LISP programs in R
...to generate random normal variables from
SAS to LISP; of course it's a toy example because there is no need for a
LISP routine in this particular case. I hope R has a similar feature. Thanks
DATA _NULL_;
FILE 'c:\cl.lisp' LRECL=1024;
PUT "(defun run (num Mn SD)";
PUT "(setq mix (list nil))";
PUT "(dotimes (n num)";
PUT "(setq u (- (* 2 (random 1.0)) 1)";
PUT "v (- (* 2 (random 1.0)) 1)";
PUT "w (+ (expt u 2) (expt v 2)))";
PUT "(when (< w 1)";
PUT "(progn";
PUT "(setq...
2003 Nov 13
1
Can't get Sweave syntax highlighting with Emacs
...quot;ess" "ess major mode" t)
(autoload 'ess-noweb-mode "ess" "ess noweb mode" t)
(autoload 'ess-noweb-make-buffer "ess" "open a buffer in R mode" t)
(autoload 'ess-make-buffer "ess" "open a buffer in R mode" t)
(setq auto-mode-alist (append '(("\\.R$" . ess-mode)) auto-mode-alist))
(setq auto-mode-alist (append '(("\\.S$" . ess-mode)) auto-mode-alist))
(setq auto-mode-alist (append '(("\\.sp$" . ess-mode)) auto-mode-alist))
(global-set-key [(f10)] 'ess-make-buffer)...
2009 Aug 11
1
[PATCH libguestfs] doc: improve emacs snippets
...ke syntax-check" failure.
This would have prevented it:
>From 4740b66adc5985d9a72a7648aa60c5389ffc31af Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering at redhat.com>
Date: Tue, 11 Aug 2009 09:53:16 +0200
Subject: [PATCH libguestfs] doc: improve emacs snippets
* HACKING: Make (setq indent-tabs-mode nil) apply to nearly all
files, not just C-mode ones.
---
HACKING | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/HACKING b/HACKING
index cb339bd..860726d 100644
--- a/HACKING
+++ b/HACKING
@@ -35,16 +35,24 @@ indentation level, and other than...
2002 May 23
3
separating a digest into separate messages
Could someone suggest a mail reader that will parse a digest from r-help
into separate messages?
Preferably, this reader would allow replies or forwards of separate
messages. I use pine on a Sun running SunOS 5.7. If there were an add-on to
pine that would accomplish this task, that would be even better.
Anne
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Anne E. York
National Marine Mammal Laboratory
2010 Nov 12
0
Installing R+Emacs+MikTeX editor on a USB drive
...er "miktex_portable/miktex/bin;"
(getenv "PATH")))
b. Create a directory called "home" in the USB drive a put your ".emacs"
file in it.
It should contain the following lines:
(defvar usb-site-lisp-dir (expand-file-name "site-lisp" usb-home-dir))
(setq load-path (cons usb-site-lisp-dir load-path))
(let ((dir (delete nil (mapcar (lambda (f)
(unless (string-match "\\.elc?\\'" f) f))
(cddr (directory-files usb-site-lisp-dir t))))))
(setq load-path (append dir load-path)))
;;portable emacs will know about portable R
(s...
2004 Feb 26
2
Sweave and Xemacs on Windows2000?
...it.el
(load "D:/prog/XEmacs/xemacs-packages/lisp/auctex/tex-site")
(load "D:/prog/XEmacs/xemacs-packages/sweave-site.el")
.emacs (either in home or in home/.xemacs/ does not matter.)
(defun Rnw-mode ()
(require 'ess-noweb)
(noweb-mode)
(if (fboundp 'R-mode)
(setq noweb-default-code-mode 'R-mode)))
(add-to-list 'auto-mode-alist '("\\.Rnw\\'" . Rnw-mode))
(add-to-list 'auto-mode-alist '("\\.Snw\\'" . Rnw-mode))
(setq reftex-file-extensions
'(("Snw" "Rnw" "nw" "tex&qu...
2008 May 03
1
ESS and Xemacs version 21.5.28
Hi,
When I start Xemacs version 21.5.28 (in Unix), using the init.el:
(setq bell-volume 0)
(setq sound-alist nil)
(setq grep-find-use-xargs nil)
(require 'ess-site)
I get the following error:
(1) (initialization/error) An error has occurred while loading
$home/.xemacs/init.el:
Cannot open load file: "ess-site"
Backtrace follows:
signal(file-erro...
2007 Feb 08
3
coding style
...putting something
+like this into your .emacs:
+
+ ;; NUT style
+ (defun nut-c-mode ()
+ "C mode with adjusted defaults for use with the NUT sources."
+ (interactive)
+ (c-mode)
+ (c-set-style "K&R")
+ (setq c-basic-offset 3)
+ (setq tab-width 3))
+
+ ;; apply NUT style to all C source files in all subdirectories of nut/:
+
+ (setq auto-mode-alist (cons '(".*/nut/.*\\.[ch]$". nut-c-mode)
+ auto-mode-alist))
+
+You can go a long way towards converting your source co...
2006 Mar 14
3
rails on emacs - need a working .emacs sample
...rge box.
It got a bit more comlex after I got most of the .el files in the articles
http://www.emacswiki.org/cgi-bin/emacs/RubyOnRails -and-
http://wiki.rubyonrails.com/rails/pages/HowToUseEmacsWithRails.
Each of these has a sample of .emacs and I see that some commands may
be duplicated.
eg, (setq auto-mode-alist (cons ''("\\.rhtml$" . html-mode) auto-mode-alist))
and
(add-to-list ''auto-mode-alist ''("\\.rhtml$" . html-mode))
I copied both of these files into my .emacs and have been playing with
commenting out or uncommenting various lines. (Obv...
2003 Mar 02
2
ESS+R not closing gracefully
...oop endlessly; that is why I am posting to this mailing list in
the first instance.)
If, from the Windows command prompt, I run rterm, and do
> hist(rnorm(10))
> dev.off()
> quit()
it quits cleanly.
In case it is relevant, I have made one change to the ESS file
ess-site.el: I added
(setq-default inferior-R-program-name
"c:\\program files\\R\\bin\\Rterm.exe")
(since otherwise it couldn't find Rterm.exe, even though it is on my
path); also, my emacs init file init.el reads thus:
(load "c:/program files/xemacs/xemacs-packages/lisp/ess/ess-site")
(setq comi...
2003 Apr 23
1
Setting up Xemacs + Sweave
Dear list,
I have tried to setup my Xemacs for use with Sweave, which I indend to learn.
I have followed the instructions in the Sweave FAQ, that is to say, I put
(defun Rnw-mode ()
(require 'ess-noweb)
(noweb-mode)
(if (fboundp 'R-mode)
(setq noweb-default-code-mode 'R-mode)))
(add-to-list 'auto-mode-alist '("\\.Rnw\\'" . Rnw-mode))
(add-to-list 'auto-mode-alist '("\\.Snw\\'" . Rnw-mode))
(setq reftex-file-extensions
'(("Snw" "Rnw" "nw" "tex&qu...
2006 Apr 08
5
rails.el on Ubuntu
Anybody who have a working .emacs (++) for Ubuntu (or Debian) with the
newest emacs-rails (v.0.3). I have especially trouble with getting
HTML Mode Snippets to work.
- Henrik
2005 May 22
1
R-exts.texi: nuke-trailing-whitespace has changed name (PR#7888)
...2.8) `nuke-trailing-whitespace' has
changed name to `ess-nuke-trailing-whitespace'.
In addition: by default, ess-nuke-trailing-whitespace is a no-op (as was
nuke-trailing-whitespace). To `activate' it one must set
ess-nuke-trailing-whitespace-p to t or 'ask (default is nil), e.g.
(setq ess-nuke-trailing-whitespace-p t)
2003 Aug 20
0
end-of-loop-timeout problem and submit-bug-report output (resending) (PR#3841)
...To: ess-bugs@stat.math.ethz.ch
Subject: ess-mode 5.1.24; end of loop timeout
--text follows this line--
Emacs : XEmacs 21.4 (patch 11) "Native Windows TTY Support (Windows)"
[Lucid] (i586-pc-win32) of Wed Jan 08 2003 on TSUNAMI
Package: ess-mode 5.1.24
current state:
==============
(setq
ess-language "S"
ess-dialect "R"
ess-ask-for-ess-directory nil
ess-ask-about-transfile nil
ess-directory nil
ess-keep-dump-files "always"
ess-source-directory "/tmp/"
)
(ess-setq-vars-LOCAL): language=SAS, dialect=SAS, buf=unlikely-name.sas,
comint..e...
2006 Feb 05
30
Emacs rails.el
Features:
* Management WEBrick - start, stop
* Viewing log files
* Abbrev from TextMate
* Switching between View/Action
http://www.emacswiki.org/cgi-bin/emacs/rails.el
2010 Nov 10
4
Installing R and an editor on a USB drive
...trator rights.
I have found out that Emacs (Vincent Goulet's Emacs for Windows Modified
http://vgoulet.act.ulaval.ca/en/ressources/emacs/windows) can be installed
without administrator rights. There is, however, one problem. I have edited
the site-start.el file and adjusted the path variable:
(setq inferior-R-program-name "G:/r-2.12.0/bin/i386/rterm.exe")
since R is installed on the G drive. Everything works if R is on G, but when
changing the computer, R is usually on another drive and Emacs cannot find
it. Is it possible to handle this case?
XEmacs for Windows requires that the...
2009 Feb 17
1
C basic indentation
...))
;;; ESS
(add-hook 'ess-mode-hook
(lambda ()
(ess-set-style 'C++ 'quiet)
(add-hook 'local-write-file-hooks
(lambda ()
(ess-nuke-trailing-whitespace)))))
(setq ess-nuke-trailing-whitespace-p 'ask)
;;; Perl
(add-hook 'perl-mode-hook
(lambda () (setq perl-indent-level 4)))
into my .emacs file. IIRC, back in 2005 it gave me a basic indentation
of 4 in C (good), but only 2 in R (not so good, but I fixed it with the
aid o...
2003 Feb 10
0
calling sweave function from LaTex re directories, formatting
...uggestions by David Whiting, Friedrich Leisch and Frank
Harrell, but have a few more queries.
1. On formatting:
I added the suggested sweave customization to my .emacs file
; Sweave customisation
(defun Rnw-mode ()
(require 'ess-noweb)
(noweb-mode)
(if (fboundp 'R-mode)
(setq noweb-default-code-mode 'R-mode)))
(add-to-list 'auto-mode-alist '("\\.Rnw\\'" . Rnw-mode))
(add-to-list 'auto-mode-alist '("\\.Snw\\'" . Rnw-mode))
(setq reftex-file-extensions
'(("Snw" "Rnw" "nw" "tex&q...
2005 Mar 28
1
gnuclient problems witrh R/ESS in linux
...,6)
the opened window (called '6b8b4567') appears not to be connected to the
gnuclient
and I'm able to edit the file but has no instructions in the
minibuffer
and
C-x # gives
'6b8b4567 does not belong to gnuserv client'
in init.el I have
(require 'gnuserv)
(gnuserv-start)
(setq gnuserv-frame (selected-frame))
Any help please?
Fredrik