Welcome, Guest. Please login or register.

Author Topic: XEmacs configuration help  (Read 1299 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline elendilTopic starter

  • Sr. Member
  • ****
  • Join Date: Nov 2002
  • Posts: 324
    • Show all replies
    • http://www.idiot.fnuck.dk
XEmacs configuration help
« on: May 10, 2004, 02:18:02 PM »
HELP!

I thouht I would abandon Scite as my linux editor and go for XEmacs instead, but XEmacs is horribly configured, as we all know.

I've tried finding information, googling, and trying random options for hours on end now...

My problem is currently this:
 Apparantly it is close to impossible (or at least rather difficult) to make emacs NOT indent stuff by itself, which is rather annoying when it does it wrong. I think my major gripe right now is with tab size. It indents four tabs (or spaces, I don't know, really), whenever you hit the tab button. Do you know how I can make that 2?

I'm trying to use emacs for java programming, but I was hoping the tab-size could be set in a general way.

Sincerely,

-Kenneth Straarup.  
 
 

Offline elendilTopic starter

  • Sr. Member
  • ****
  • Join Date: Nov 2002
  • Posts: 324
    • Show all replies
    • http://www.idiot.fnuck.dk
Re: XEmacs configuration help
« Reply #1 on: May 11, 2004, 11:58:29 PM »
It's not really so much the size as it is the style. I have gotten used to use tab size 2 and I would sincerely hate it to suddenly have fractions of code with a different tabsize, or load up a tabsize 2 document and change stuff using tabsize 4 etc, what a mess. And yes, I use spaces instead of tabs for several reasons. Otherwise this would of course not have been as much of a problem as it is.

Or was, actually. I spent a day and a half searching, changing variables, guessing syntaxes, bugging linux geeks etc, and finally after having changed c-basic-offset variable under C-group to 2 (and lots of other stuff I've forgotten), it seemed to work...well not right away, of course...setting the variable didn't make it so, a restart of the program was required, which puzzled me for yet another while.

It's stupid really. The editor is really quite decent, but it takes far longer to configure it properly than it takes to write OS4 without using the 3.1 source - unless you've studied emacs for a century or two.

Sincerely,

-Kenneth Straarup.