help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[h-e-w] Memory problems with Emacs 21-3


From: Andres Gonzalez
Subject: [h-e-w] Memory problems with Emacs 21-3
Date: Thu, 09 Jun 2005 14:22:25 +0200

Hi 

I have two problems with Emacs Windows.  I am using emacs-21.3. I use Emacs for 
two things writing Latex with AucTex and writing C programs and sometimes to 
talk with my psychotherapist. It usually works fine but from time to time I 
have problems with the memory (at least I think that is the problem). 

For instance, when writing Latex documents sometimes I get long delays between 
what I am typing and the display in the screen. It feels like when you have a 
large document in Word with lost of graphs and you try to make changes to that 
document. When this happens I just hear the fan of my computer but no answer 
from Emacs. The strangest thing is that the problem is not solved by 
re-starting Emacs. It seems to me that Emacs does not communicate correctly 
with the memory manager in Windows.

The other problem is with the C-mode. Some times Emacs does not clear the 
screen properly. Say you move up and down with C-v and C-p and after a while 
Emacs does not changes the context of the display but it overlaps different 
windows. This problem is easily solved by re-starting Emacs. 

Is this happening only to me? Hopefully no, because I have no clue how to go 
around it! Perhaps I made a mistake with my /.emacs file. 

Andrés
PD: I ask my psychotherapist, but even he has memory problems!

Any way here is my Emacs file.

;;;#######################################################################################################################
;; 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
(global-font-lock-mode t)

;; enable 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)

;;to display time
(display-time)

;;to set the cursor color
(set-cursor-color "red")

;;to set the font
(set-frame-font "-*-fixedsysttf-*-*-*-*-15-*-*-*-*-*-*-*")

;;to manage the geometric size of initial window.
;;(setq initial-frame-alist '((width . 87) (height . 42)))

;;set the keybinding so that you can use f4 for goto line
(global-set-key [f4] 'goto-line)
;;set the keybinding so that f3 will start the shell
(global-set-key [f3] 'shell)
;;set the keybinding so that f5 will start query replace
(global-set-key [f5] 'query-replace)
(global-set-key [f6] 'switch-to-buffer)
(global-set-key [f7] 'hippie-expand)
(global-set-key [f8] 'ispell)
;;(global-set-key [home] 'beginning-of-buffer)
;;(global-set-key [end] 'end-of-buffer)

(setq load-path (cons "c:/users" load-path))

(when window-system
;; enable wheelmouse support by default
(mwheel-install)
;; use extended compound-text coding for X clipboard
(set-selection-coding-system 'compound-text-with-extensions))
(autoload 'mpg123 "mpg123" "A Front-end to mpg123" t)


;;BACKUP
;; ========== Place Backup Files in Specific Directory ==========

;; Enable backup files.
(setq make-backup-files t)

;; Enable versioning with default values (keep five last versions, I think!)
(setq version-control t)
;; Save all backup file in this directory.
(setq backup-directory-alist (quote ((".*" . "c:/bak/"))))


;; ========== Enable Line and Column Numbering ==========

;; Show line-number in the mode line
(line-number-mode 1)
;; Show column-number in the mode line
(column-number-mode 1)


;;;;;;;;;;;;;;;;;
;; APPEARANCE
;;;;;;;;;;;;;;;;;
;;(setq font-lock-maximum-decoration t)
(setq visible-bell t)
(setq require-final-newline t)
(setq resize-minibuffer-frame t)
(setq column-number-mode t)
(setq-default transient-mark-mode t)
(setq next-line-add-newlines nil)
(setq blink-matching-paren nil)
(global-font-lock-mode 1 t)
(blink-cursor-mode -1)
(tool-bar-mode -1)
;;(tooltip-mode -1)
;;Customized syntax highlighting colors
;;(set-default-font "-misc-fixed-medium-r-normal-*-*-120-*-*-c-*-koi8-r")
;;(set-foreground-color "#dbdbdb")
;;(set-background-color "#000000")
(set-cursor-color "#ff0000")
;; go right to an empty buffer
(setq inhibit-startup-message t)


; OX mode
(require 'cc-mode) ; necessary to put it here in order to get extra modes.
(setq auto-mode-alist
      (append '(("\\.ox$"   . ox-mode)
                ) auto-mode-alist))

(defun ox-compile ()
      "Try and compile an ox file"
      (interactive ())
      (save-buffer) (shell-command (concat "oxl " (buffer-file-name) ) nil nil 
))

(setq ox-mode-map nil)
(add-hook 'ox-mode-hook
    '(lambda ()
        (local-set-key
            "\C-co"
            'ox-compile)
    ))

(setq-default ispell-program-name "aspell")
(setq-default ispell-extra-args '("--reverse"))

(require 'tex-mik)
(require 'tex-site)
(setq TeX-source-specials-mode t)
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)   ; with AUCTeX LaTeX mode
(setq text-mode-hook 'turn-on-auto-fill)
(setq reftex-cite-format 'harvard)
(setq outline-minor-mode-prefix "\C-c\C-m")
(require 'gnuserv)
(gnuserv-start)
(setq gnuserv-frame (selected-frame))

; end LAtex


;SECTION: bat mode

(setq auto-mode-alist
      (append
       auto-mode-alist
       (list (cons "\\.[bB][aA][tT]$" 'bat-mode))
       ;; For DOS init files
       (list (cons "CONFIG\\."   'bat-mode))
       (list (cons "AUTOEXEC\\." 'bat-mode))))

(autoload 'bat-mode "bat-mode"
  "DOS and WIndows BAT files" t)

; Time
;; Some display settings

(setq display-time-24hr-format t)                ; In 24 hour format
(display-time)                                   ; Display the time
;(setq-default auto-fill-function 'do-auto-fill)  ; Autofill in all modes   
;(setq fill-column 78)                            ; wordwrap i this column




reply via email to

[Prev in Thread] Current Thread [Next in Thread]