[emacs] init file being ignored


 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications [emacs] init file being ignored
# 1  
Old 07-03-2008
[emacs] init file being ignored

Hi people,

I am hoping someone in this forum might be able to help me with an emacs issue that has me quite frustrated.
OS: Gentoo 1.12.11.1
emacs 21.4.2
using bash
init file: ~/.emacs

My init file in my home directory on a dev webserver is being ignored. The file appears to be read when I start emacs--if I put non-interpretable garbage at the top of the file, emacs flashes an error with the offending line when I start it--but normally all the settings in the emacs file seem to be disregarded.

E.g., I have:
(setq default-tab-width 2)
Even with this setting, I still get monstrous 8-character tabs.

I know it is not a problem with my .emacs file itself, because I am using a copy of the exact same file on our live webserver with no problems.

I've tried everything I can think of, including explicitly specifying my username or the file when I open emacs:
emacs -u myusername
emacs --load /home/myusername/emacs
emacs --debug-init

Edit: I also checked the values of variables pertaining to the init file and they all seem to be correct:
user-login-name: "myusername"
user-real-login-name: "myusername"
user-init-file: "/home/myusername/.emacs"
init-file-user: "" (empty)

I do not have any sort of administrative access on this server, but my admin is a bit of a novice, so I want to have concrete instructions for him if I have to get him to change something.

Anyone have any advice or suggestions? Thanks in advance.

Last edited by xjm; 07-03-2008 at 04:03 PM..
# 2  
Old 07-07-2008
I don't know if this is similar or not but I was having a problem with emacs not keeping my customized options. I'm running on SunOS.

I too was stumped. I checked my .profile as a last resort and found that my exported USER and LOGNAME variables were the name of the person I copied the profile from... I had missed changing it. Once I did, emacs worked fine...

Don't know if it applies to your situation or not...
# 3  
Old 08-26-2008
Did you every get a fix for this?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to use emacs? Also how to open existing emacs files with .cgi format?

Hi All, I am new to this forum and a beginner in unix. Please correct me if I put the question in a wrong way.. How to use emacs editor? Also how to open existing emacs files with .cgi format? I have the following link :- http link i.e. url and path : /abc/xyz.dev/xyz/documents What... (7 Replies)
Discussion started by: swathi123
7 Replies

2. Red Hat

init-script failing because of /etc/rc.d/init.d/functions

I encountered a problem on one of our database servers. OS: CentOS 5.5 final Kernel: 2.6.18-238.5.1.el5.028stab085.2 (OpenVZ kernel) We wrote some DB-Start/Stop-scripts ("/db2/admin/scripts_dba/start_services.ksh" and ".../stop_services.ksh") to start the database instances. (Database... (1 Reply)
Discussion started by: bakunin
1 Replies

3. Solaris

What is the diffe b/w init s and init S

i did my research in finding the answer but couldn't find right one. Please give your inputs. (6 Replies)
Discussion started by: ranumala
6 Replies

4. UNIX for Advanced & Expert Users

Problem on init 0, execution is the same with init 6

Hi, I am experiencing a weird thing on my SUNFIRE machine with Solaris 9 OS. When I do init 0 to shutdown the machine to go to ok prompt, what it did was shutdown and reboot like an init 6 command do. I did check the corresponding rc scripts that were involved with init 0 and compared with rc... (2 Replies)
Discussion started by: Yenthanh
2 Replies

5. Red Hat

Difference between 'init s' and 'init 1'

What is the difference between 'init s' and 'init 1'. I know that both will work to change the current run level to single user mode. Is there any difference in those two commands? (5 Replies)
Discussion started by: praveen_b744
5 Replies

6. Linux

How to I change init levels after typing init 1

Dear all, I typed in init 1 on my redhat box as root and according to wikipedia (http://en.wikipedia.org/wiki/Runlevel): 1 Single-User Mode Does not configure network interfaces, start daemons, or allow non-root logins So now I can't connect back to it. How do I change the init back to 3?... (8 Replies)
Discussion started by: z1dane
8 Replies

7. Solaris

after init all /tmp file has been removed

I'm new in Solaris server After the system support reboot the Solaris server, all the files in /tmp has been removed, is that normal under Solaris or under different init level will get different result? which init level will do that? (5 Replies)
Discussion started by: yesthomas
5 Replies

8. UNIX for Dummies Questions & Answers

init file for emacs editor

I use emacs editor. I would like to change backup strategy. I don't know how to change some variables' values in .emacs file : make-backup-files and so on. Thank you for any advices. (0 Replies)
Discussion started by: annemar
0 Replies

9. UNIX for Advanced & Expert Users

Init 6 & Init 0 problem

Hi Expert, I have encountered some problem with my SUN system. Everytime when i issue command #init 6 OR #init 0 it just logout and prompt for login again instead of rebooting the server when run init 6 and system shutdown when run init 0.. I can only reboot the system using reboot ... Was... (6 Replies)
Discussion started by: sc2005
6 Replies

10. HP-UX

What file contains boot up init details?

I want to get my telnetd to run on startup and was wondering where it was? im used to having it in /etc/init.d/rc.d but it is not the same in hp-ux :( thanks all (4 Replies)
Discussion started by: emplate
4 Replies
Login or Register to Ask a Question