all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kurumi <sales@xupiter.com>
Subject: emacs 20.7.1 forgets c-basic-offset after find-file
Date: Tue, 13 Jul 2004 16:11:16 GMT	[thread overview]
Message-ID: <sales-5C1579.09111413072004@news.sf.sbcglobal.net> (raw)

I'm running emacs 20.7.1 in Redhat 7.1, Linux 2.4.2-2.

I have a modified .emacs file (included) to give me some key
bindings matching the other machines I work on. I also
have c-basic-offset set to 3.

What's annoying is that after I do a "find file" (aka
open a file), emacs resets c-basic-offset to 2. This
is immediately apparent whenever it auto-indents a
line of code. When I do Customize -> specific option
-> c-basic-offset, it is indeed at 2, and I have to
change it and save it.

In other words:
1. start emacs; c-basic-offset is at 3
2. open a file; c-b-o changes to 2. However, .emacs
still shows 3
3. re-edit the value in "customize"; c-b-o back at 3
4. open another file; c-b-o back to 2

As you can imagine, this is irritating. In a previous
installation of 7.1/20.7.1, I didn't have this
problem. Any ideas what's causing it?

My .emacs is shown below. Thanks!

Scott





---- contents of ~/.emacs ---------
;; 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)
))

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

(custom-set-variables
 '(c-basic-offset 3)
 '(pc-selection-mode t nil (pc-select)))
(custom-set-faces)

(global-set-key [(control s)] 'save-buffer)
(global-set-key [(control o)] 'find-file)
(global-set-key [(control g)] 'goto-line)
(global-set-key [(control i)] 'indent-region)
(global-set-key [(control f)] 'isearch-forward)
(global-set-key [(control b)] 'isearch-backward)
(global-set-key [(control z)] 'undo)
(global-set-key [(control w)] 'kill-this-buffer)
(global-set-key [(control q)]
'do-you-really-want-to-save-buffers-kill-emacs)
(global-set-key [(control end)] 'end-of-buffer)
(global-set-key [(control home)] 'beginning-of-buffer)

-- 
Kurumi http://www.kurumi.com/
3di's, Conn. Roads, maps, interchanges

             reply	other threads:[~2004-07-13 16:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-13 16:11 Kurumi [this message]
2004-07-13 16:53 ` emacs 20.7.1 forgets c-basic-offset after find-file Michael Slass
2004-07-14  5:45   ` Kurumi
2004-07-13 16:56 ` martin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sales-5C1579.09111413072004@news.sf.sbcglobal.net \
    --to=sales@xupiter.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.