LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-20-2003, 07:48 PM   #1
newbieME
Member
 
Registered: Mar 2003
Location: BC Canada
Distribution: Slack Niner ;)
Posts: 185

Rep: Reputation: 30
a quick question about emacs...


okay for some reason, in kde xterm, when i type emacs, i sometimes get a nice gui version of emacs and sometimes i just get emacs opening itself in the xterm window without all the picture mumbo jumbo...what option changes this??

i prefer the text based emacs
 
Old 03-20-2003, 08:12 PM   #2
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
emacs -nw
nowindow

opens up in terminal
 
Old 03-20-2003, 08:28 PM   #3
newbieME
Member
 
Registered: Mar 2003
Location: BC Canada
Distribution: Slack Niner ;)
Posts: 185

Original Poster
Rep: Reputation: 30
nice thanks..umm but i am wondering...if it possible to set it up so when i used emacs -nw /etc/whatever &
it will open up another xterm with emacs???
cuz right now..i just get nothing when i type that in...
 
Old 03-20-2003, 09:02 PM   #4
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
when u do -nw u can't supply &
it will be on terminal , how would it be background.

well u can do emacs -nw & and fg
but no point to do that =)

about the other question.. i don't know
 
Old 03-20-2003, 10:45 PM   #5
padlamoij
Member
 
Registered: Oct 2002
Location: East Point, GA
Posts: 188

Rep: Reputation: 30
okay

ok... well you have to set an option to xterm. i dont know if this works for eterm but you can try it. type:

xterm -e emacs -nw /name/of/file &

and that should po up a new window. the & is just so that you can run it in the background so you can have your original xterm window back. the -e is the option to execute the following program in the new xterm window. you could start any other program here instaed of emacs. If this is what you need write back because you would be the official first person i've helped. super fun!!

Last edited by padlamoij; 03-20-2003 at 10:53 PM.
 
Old 03-20-2003, 11:07 PM   #6
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
padlamoij, be good and put some quotes around the -e command.
; )

yeah, and someone was asking: the & does not address emacs but the xterm that is being opened - that's why some quotes could really remove confusion.
 
Old 03-20-2003, 11:10 PM   #7
padlamoij
Member
 
Registered: Oct 2002
Location: East Point, GA
Posts: 188

Rep: Reputation: 30
?

i am still a bit new to the world o' linux... um... what do you mean by quotes?
 
Old 03-21-2003, 12:36 AM   #8
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
quotes 'blah blah' or "blah blah" or `blah blah`

i guess he was saying
xterm -e "emacs -nw /name/of/file" &
could have looked more clear where & is being binded (with xterm not with emacs)
although if u put quotes around it , it doesn't work..(at least in my machine)
 
Old 03-21-2003, 01:08 AM   #9
padlamoij
Member
 
Registered: Oct 2002
Location: East Point, GA
Posts: 188

Rep: Reputation: 30
ahhhh... point taken... but would a total newbie put the quotes in
 
Old 03-21-2003, 08:36 AM   #10
newbieME
Member
 
Registered: Mar 2003
Location: BC Canada
Distribution: Slack Niner ;)
Posts: 185

Original Poster
Rep: Reputation: 30
ahhh neat...that sounds like it will work..i will give it a try when i get home
 
Old 03-21-2003, 07:16 PM   #11
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
Quote:
although if u put quotes around it , it doesn't work..(at least in my machine)
works on mine.
maybe try

Code:
xterm -e "emacs -nw temp"&      #notice lack of space before &
xterm -e 'emacs -nw temp'&       #single quote - should also work
 
Old 03-21-2003, 07:19 PM   #12
padlamoij
Member
 
Registered: Oct 2002
Location: East Point, GA
Posts: 188

Rep: Reputation: 30
ahhhhhh. i have once again learned something new. thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Emacs question tuananhbirm Linux - General 6 07-20-2005 02:55 AM
emacs question greg108 Programming 3 09-25-2004 09:16 AM
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM
emacs question Midknight Programming 2 02-03-2003 11:33 PM
emacs question twk Linux - Software 0 05-23-2002 07:00 PM


All times are GMT -5. The time now is 12:50 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration