all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* RE: customize-option erases .emacs contents!
@ 2005-04-25 18:18 Rancier, Jeff
  0 siblings, 0 replies; 8+ messages in thread
From: Rancier, Jeff @ 2005-04-25 18:18 UTC (permalink / raw)


Or better yet, maintain it in CVS.

-----Original Message-----
From: Phillip Lord [mailto:p.lord@cs.man.ac.uk] 
Sent: Monday, April 25, 2005 1:28 PM
To: help-gnu-emacs@gnu.org
Subject: Re: customize-option erases .emacs contents!




>>>>> "JS" == JS  <dsa.@asdf.com> writes:

  JS> I have just used customize-option to set transistent-mode
  JS> on. But that operation just erased all other content from my
  JS> .emacs file! Is this a know risk when using customize-option
  JS> instead of writing the instructions manually in the .emacs file?


I've had this happen very occasionally to me as well. For this reason, among
others, my .emacs now looks like this...



;;Load my main emacs file
(add-to-list 'load-path "~/emacs")
(add-to-list 'load-path "~/emacs/packages")
(add-to-list 'load-path "~/emacs/published")

;; The first thing to do is load the packages directory. It provides ;;
autoloads for all of the packages that I use regularly, rather than ;;
anything else. 
(load "package-autoload.el")

;; The I want to load my main file which is where everything is ;; actually
loaded. (load "main.el" )

(setq minibuffer-max-depth nil)

(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.
'(LaTeX-style-list (quote (("book") ("article") ("letter") ("prosper")
("report"))))

********************SNIP*******************


;;Load the post-custom file which has code which needs to be loaded er...
;;after the custom set vars. On the whole it is used to reset custom vars 
;;for specific circumstances
(load "post-custom.el")

(put 'upcase-region 'disabled nil)




All of what use to be my .emacs is in "main.el". I also have a small
post-custom.el for the odd thing that has to be done after custom. 
I think this is a neater way of doing things anyway.

I never found out a routine way of getting this to happen (*), so I don't
know if it's a bug. I also use numbered file backups, so it's always
recoverable. 

Cheers

Phil


(1) I tried xemacs once and it wiped my .emacs for me. This was my own
    stupid fault as it did ask me twice before doing it, and I still
    said yes. 

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <mailman.2966.1114453347.2895.help-gnu-emacs@gnu.org>]
* customize-option erases .emacs contents!
@ 2005-04-25 16:53 JS
  2005-04-25 17:28 ` Phillip Lord
  0 siblings, 1 reply; 8+ messages in thread
From: JS @ 2005-04-25 16:53 UTC (permalink / raw)


I have just used customize-option to set transistent-mode on. But that
operation just erased all other content from my .emacs file! Is this a know
risk when using customize-option instead of writing the instructions
manually in the .emacs file?

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-04-26 10:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-25 18:18 customize-option erases .emacs contents! Rancier, Jeff
     [not found] <mailman.2966.1114453347.2895.help-gnu-emacs@gnu.org>
2005-04-26  9:45 ` Phillip Lord
  -- strict thread matches above, loose matches on Subject: below --
2005-04-25 16:53 JS
2005-04-25 17:28 ` Phillip Lord
2005-04-25 22:52   ` Kevin Rodgers
     [not found]   ` <mailman.2982.1114469895.2895.help-gnu-emacs@gnu.org>
2005-04-26  6:29     ` JS
2005-04-26  8:29       ` Peter Dyballa
     [not found]       ` <mailman.3025.1114505114.2895.help-gnu-emacs@gnu.org>
2005-04-26 10:59         ` Jim Smith

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.