[ESS] Rnw-mode no line break

Wang, Zhu zhuw at mail.smu.edu
Wed Mar 30 16:51:59 CEST 2005


Dear all,

I am having trouble with my Rnw mode file format using Xemacs. For example, the following file has no line break but when I have other mode I do have line break.

\documentclass[a4paper]{article}\title{Chronic Alcoholism and Bone Mineral Density}\author{Center for Biostatistics}\begin{document}\maketitle<<echo=false,results=hide>>=library(foreign)alco.data
..................................................

Below if my init.el and I also have difficult to find who Rnw was set up since commenting out the bottom doesn't work and I still have Rnw-mode.

Thanks for any help.

Zhu Wang


******************************************************

;; Red Hat Linux default .emacs initialization file

;; Are we running XEmacs or Emacs?
(defvar running-xemacs (string-match "XEmacs\\|Lucid" emacs-version))

;; Set up the keyboard so the delete key on both the regular keyboard
;; and the keypad delete the character under the cursor and to the right
;; under X, instead of the default, backspace behavior.
(global-set-key [delete] 'delete-char)
(global-set-key [kp-delete] 'delete-char)

;; Turn on font-lock mode for Emacs
(cond ((not running-xemacs)
       (global-font-lock-mode t)
))

;; Visual feedback on selections
(setq-default transient-mark-mode t)

;; Always end a file with a newline
(setq require-final-newline t)

;; Stop at the end of the file, not just add lines
(setq next-line-add-newlines nil)

;; Enable wheelmouse support by default
(cond (window-system
       (mwheel-install)
))
(load "~/computing/ess-5.2.6/lisp/ess-site")
(require 'ess-site)

;; Setting for Tex
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
(require 'tex-site)

(x-symbol-initialize)
(setq inferior-S+6-program-name "Splus")

(setq package-get-require-signed-base-updates nil)

(add-hook 'text-mode-hook
          (lambda ()
            ;; remove trailing <CR> characters
            (goto-char (point-min))
            (while (search-forward "
" nil t)
              (replace-match "" nil t))
            (goto-char (point-min))))

;; Sweave-site.el
;;(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" ".tex" ".ltx") ("bib" ".bib")))
;;(setq TeX-file-extensions
;;      '("Snw" "Rnw" "nw" "tex" "sty" "cls" "ltx" "texi" "texinfo"))




More information about the ESS-help mailing list