LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-23-2004, 02:36 PM   #1
filburt1
Member
 
Registered: Mar 2004
Distribution: SUSE Linux 10.1 (Intel, 32-bit)
Posts: 45

Rep: Reputation: 15
XEmacs questions


If you can answer even one of these questions, I would greatly appreciate it. These questions are all for C++.
  1. How can I display line numbers in the gutter?
  2. What is the option for deleting or overwriting text that is selected (i.e., when text is selected, Delete deletes the selection and any other key overwrites it)?
  3. How can I always indent four spaces, no exceptions? i.e., I don't want something like this:
    Code:
    void someLongFooName(int foo,
                         long bar)
    but rather
    Code:
    void someLongFooName(int foo,
            long bar)
    or
    Code:
    void someLongFooName(int foo,
        long bar)
    Moreover, the indenting should never be relative to any preceeding line.
  4. How do I indent and outdent a selection?
 
Old 04-23-2004, 04:10 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Re: XEmacs questions

Quote:
Originally posted by filburt1
If you can answer even one of these questions, I would greatly appreciate it. These questions are all for C++.
And there was me thinking they were xemacs related ... :}

Quote:
[*]How can I display line numbers in the gutter?
edit .emacs (or xemacs if that's what xemacs cllas it)
(column-number-mode t)

Quote:
[*]How can I always indent four spaces, no exceptions? i.e., I don't want something like this:
No idea, but I find both of your suggestions ugly,
they make no sense in the term of logical layout of
the function definition.

Quote:
Moreover, the indenting should never be relative to any preceeding line.
What would you think it should be using, then?
If you don't like the indentation feature, turn the
C++ mode off ...
[edit]
M-x text-mode
[/edit]


Cheers,
Tink

Last edited by Tinkster; 04-23-2004 at 04:14 PM.
 
Old 04-23-2004, 05:28 PM   #3
filburt1
Member
 
Registered: Mar 2004
Distribution: SUSE Linux 10.1 (Intel, 32-bit)
Posts: 45

Original Poster
Rep: Reputation: 15
1. That displays the numbers in the side gutter and not the bottom status bar?
3. The problem is that the indenting is very unpredictable. I simply want to be able to press tab and have an indent exactly four spaces further than the previous, and always starting at the first column, a la
Code:
.
    .
        .
            .
etc.
 
Old 04-23-2004, 06:18 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally posted by filburt1
1. That displays the numbers in the side gutter and not the bottom status bar?
Sorry then, I don't use xemacs, and in emacs it displays it at the bottom.

Quote:
3. The problem is that the indenting is very unpredictable. I simply want to be able to press tab and have an indent exactly four spaces further than the previous, and always starting at the first column, a la
Code:
.
    .
        .
            .
etc. [/B]
Doesn't xemacs do that in text-mode?
You cna easily change the default-tab width


(setq default-tab-width 4)


Cheers,
Tink
 
Old 04-23-2004, 06:20 PM   #5
filburt1
Member
 
Registered: Mar 2004
Distribution: SUSE Linux 10.1 (Intel, 32-bit)
Posts: 45

Original Poster
Rep: Reputation: 15
Well I have no idea what I'm doing then...I manually enable syntax highlighting to get color coding, and the tab is completely unpredictable. The selection problems are also incredibly frustrating.
 
Old 04-23-2004, 09:11 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally posted by filburt1
Well I have no idea what I'm doing then...I manually enable syntax highlighting to get color coding, and the tab is completely unpredictable. The selection problems are also incredibly frustrating.
I'm not sure whether you got the part about M-x text-mode...

All you need to do to get rid of the "erratic tabbing" (I find
it quite sensible) is to switch to text-mode ... and I'm sure
that there's a more "normal GUI" mode for highlighting and
deletion available ... in emacs you just use C-w to "delete" a
section of text.


Cheers,
Tink
 
Old 04-23-2004, 10:32 PM   #7
miskiw
LQ Newbie
 
Registered: Mar 2004
Posts: 15

Rep: Reputation: 0
xemacs indenting is your friend

I don't know why you would want to change xemacs's amazing indenting off... it does it all for you and it is a great way to find { } errors and such... (just tab every line and it indents properly... I have been helped countless times because of it's indenting...
 
Old 04-24-2004, 11:35 AM   #8
filburt1
Member
 
Registered: Mar 2004
Distribution: SUSE Linux 10.1 (Intel, 32-bit)
Posts: 45

Original Poster
Rep: Reputation: 15
I would like the feature if I knew it would do exactly what I wanted.
 
Old 04-24-2004, 02:01 PM   #9
ssimontis
Member
 
Registered: Apr 2004
Location: USA
Distribution: Fedora Core 3
Posts: 128

Rep: Reputation: 15
Line numbers don't have to be that hard. in options, you can select line and column numbers, then go to the save to init file option in the options menu. As for the tab question, I thought a tab was already set at 4 spaces, anyways.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
is Xemacs better than vi? kamowa Linux - Software 4 12-08-2004 06:58 PM
does xemacs have anything to do with color? what is wrong with this xemacs? broodman Linux - Software 0 02-15-2004 10:43 AM
Xemacs saurya_s Linux - Software 1 02-05-2004 05:20 PM
xemacs athenerx Programming 1 06-27-2001 03:14 AM
XEMACS princessnattie Linux - Newbie 2 05-30-2001 06:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration