The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > UNIX and Linux Applications
Google UNIX.COM


UNIX and Linux Applications Questions involving software not covered by other forum go here. This includes Databases and Middleware.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to read a particular line in a file with 500000 records init mhssatya Shell Programming and Scripting 6 09-09-2006 05:37 PM
after init all /tmp file has been removed yesthomas SUN Solaris 5 12-06-2005 02:48 AM
init file for emacs editor annemar UNIX for Dummies Questions & Answers 0 10-18-2005 12:39 AM
Init 6 & Init 0 problem sc2005 UNIX for Advanced & Expert Users 6 09-06-2005 07:36 AM
What file contains boot up init details? emplate HP-UX 4 05-04-2005 06:09 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-03-2008
xjm xjm is offline
Registered User
 

Join Date: Jul 2008
Posts: 1
[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 12:03 PM.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 07-07-2008
jln319's Avatar
Registered User
 

Join Date: Apr 2007
Location: SF bay area
Posts: 1
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...
Reply With Quote
  #3 (permalink)  
Old 08-26-2008
Registered User
 

Join Date: Mar 2008
Posts: 3
Did you every get a fix for this?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:00 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0