[ESS] .emacs file seems not fully operative since upgrade from 22.3 to 24.3
Christopher W. Ryan
cryan at binghamton.edu
Thu Feb 16 20:03:56 CET 2012
I had been running emacs/ess version 22.3, Vince Goulet's modified
version, on WinXP. I am logged onto the machine as user ryanc, and my
.emacs file was (and still is) in C:\Documents and Settings\ryanc. I've
pasted it at the end of this message; it's not all that long.
I recently upgraded to Vince's modified version 23.4. I don't know if
that has any adverse effects on a pre-existing .emacs file, but since
the upgrade I've notice a couple problems:
1. Previously the default directory for creating a new file via C-x C-f
was C:/DATA, which is what I want. I think my .emacs file was
accomplishing that for me. Now, it defaults to C:\Documents and
Settings/ryanc
2. When working in a Sweave .Rnw file, M-n Shift-P would run pdflatex.
Now, I am offered the default command texi2pdf.
3. I did not have auto-fill-mode turned on before. Now, my new emacs
23.4 defaults to auto-fill-mode for any .txt or .Rnw file (and maybe
others too; I haven't explored that far yet.) When I add
(setq auto-fill-mode 0)
to my .emacs file, it does not seem to have any effect--I still get Fill
mode.
Most other preferences in my .emacs file are working OK (that is,
obeying what I've specified in my .emacs file) in my new emacs 23.4: the
colors are correct, a single space after a period ends a sentence, for
example.
I'd be grateful for any advice how I can remedy these issues.
Thanks.
--Chris
--
Christopher W. Ryan, MD
SUNY Upstate Medical University Clinical Campus at Binghamton
425 Robinson Street, Binghamton, NY 13904
cryanatbinghamtondotedu
;; Load org-mode
(add-to-list 'load-path "c:/Org/org-7.7/lisp")
(add-to-list 'load-path "c:/Org/org-7.7/contrib/lisp")
(require 'org)
;; The following lines are always needed. Choose your own keys.
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
(add-hook 'org-mode-hook 'turn-on-font-lock) ; not needed when
global-font-lock-mode is on
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)
;; Capture
(global-set-key (kbd "C-c r") 'org-capture)
(setq org-default-notes-file (concat org-directory "/junknotes.org"))
(setq org-capture-templates
'(("t" "Agenda Todo" entry
(file+headline "c:/Org/junk1.org" "Agenda")
"\n\n** TODO %?\n%T\n\n%i\n%a\n\n\n"
:empty-lines 1)
("n" "Agenda Notes" entry
(file "c:/Org/junk1.org")
"\n\n** %?\n%T\n%i\n%a\n\n\n"
:empty-lines 1)))
;; Insert immediate timestamp
(setq org-agenda-skip-additional-timestamps nil)
(define-key global-map (kbd "<f8>")
'(lambda () (interactive)
(when (eq major-mode 'org-mode)
(org-insert-time-stamp nil t t)
(insert "\n"))))
;;; This was installed by package-install.el.
;;; This provides support for the package system and
;;; interfacing with ELPA, the package archive.
;;; Move this code earlier if you want to reference
;;; packages in your .emacs.
(when
(load
(expand-file-name "~/.emacs.d/elpa/package.el"))
(package-initialize))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(load-home-init-file t t)
'(sentence-end-double-space nil)
'(show-paren-mode t)
'(text-mode-hook (quote (text-mode-hook-identify)))
'(transient-mark-mode t))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
;;to set default font to bitstream vera sans mono
(set-default-font "bitstream vera sans mono")
;;to set foreground color to white
(set-foreground-color "grey90")
;;to set background color to black
(set-background-color "black")
;;to set the cursor color
(set-cursor-color "red")
;; do not make backup files
(setq make-backup-files nil)
;; Scroll down with the cursor,move down the buffer one
;; line at a time, instead of in larger amounts.
(setq scroll-step 1)
;; Changes all yes/no questions to y/n type
(fset 'yes-or-no-p 'y-or-n-p)
;; displays the time in the status bar
(display-time)
;; to make yasnippet work
(add-to-list 'load-path
"~/.emacs.d/plugins/yasnippet-0.6.1c")
(require 'yasnippet) ;; not yasnippet-bundle
(yas/initialize)
(yas/load-directory "~/.emacs.d/plugins/yasnippet-0.6.1c/snippets")
;; hopefully a function to insert date, without time
(defun insert-time ()
(interactive)
(insert (format-time-string "%m-%d-%Y")))
;;so a single space can end a sentence
sentence-end-double-space nil
;; make DATA the default directory when starting emacs
(setq default-directory "C:/DATA" )
;; make ESS use the correct version of R
;; (setq inferior-R-program-name "c:/progra~1/R/R-2.14.1/bin/Rterm.exe")
;; active Babel languages
(org-babel-do-load-languages
'org-babel-load-languages
'((R . t)
(python . t)
(perl . t)
))
More information about the ESS-help
mailing list