Subject: | |
From: | |
Reply To: | |
Date: | Thu, 8 Mar 2007 20:09:24 +0000 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
I ran various versions of RH for many years and always had emacs set up so
that the
emacs command would take me to the file(s) that I had worked on in that dir
most recently.
Whenever I started a new dir I would do M^x desktop-save and accept the
current
working dir to store the .emacs.desktop file in.
Under SL4.4 this no longer works. When I start emacs I get the banner page.
When I
hit a key it takes me to the top of the most recent file, not the place in
the file
where I was last working.
This isn't specific to 4.4; I have met it under earlier SL versions at, for
example, ESI.
Can a kind person tell me how to get back the previous behaviour ? My .emacs
file
is below.
With thanks in advance ...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
;; 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)
;; 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
(if (not running-xemacs)
(require 'mwheel) ; Emacs
(mwheel-install) ; XEmacs
)
;;;;;;;;;;;;;;;;;;;;;;;added personally from here on
(add-to-list 'default-frame-alist '(font .
"-misc-fixed-medium-R-normal--20-200-75-75-C-100-ISO8859-1"))
(setq-default latex-mode t)
(setq default-major-mode 'latex-mode)
(setq-default show-paren-mode t)
(defun insert-date ()
"Insert date at the current cursor position in the current buffer."
(interactive)
(insert (format-time-string "%B %d, %Y")))
(define-key ctl-x-map "n" 'insert-date)
; next line added September 17, 2004
(setq tex-dvi-view-command "xmdvi")
; next line added 01-08-03, see p265
(setq tex-dvi-print-command "dvips")
; next two lines added 13-4-01. See p64
(setq-default case-fold-search nil)
(setq-default case-replace nil)
; next line added 27-07-01 from FAQ 29
(setq frame-title-format "%b")
(desktop-load-default)
(setq-default save-place t) ; added February 23, 2007
(desktop-read)
(custom-set-variables
;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
'(auto-compression-mode t nil (jka-compr))
'(current-language-environment "English")
'(default-input-method "rfc1345")
'(global-font-lock-mode t nil (font-lock))
'(show-paren-mode t nil (paren))
'(transient-mark-mode t)
'(uniquify-buffer-name-style (quote forward) nil (uniquify)))
(require 'color-theme)
(color-theme-calm-forest)
(custom-set-faces
;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
)
_________________________________________________________________
Get Messenger FREE on your Mobile https://livemessenger.mobile.uk.msn.com/
|
|
|