DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If I type 'emacs&' it will not launch emacs in a separate window. In fact, it doesn't even display emacs. However, it is started since it shows up in the list of processes but it will not open in a new window or even in the shell. 'emacs' works fine but, of course, it opens in the shell which is not what I want.
Originally posted by Andramalech are you not supposed to leave a space between the & and emacs?
EDIT: ok, apparently not... :S
I've used a space between emacs and & for years and never had a problem with it. The & operator causes the application/script/whatever to fork off so the console isn't 'stuck' handling it. Pretty useful if you call all your programs from the command line and don't feel like creating 20 terminals to handle 20 different programs.
Unforuntately this doesn't work (emacs & instead of emacs& ). Using emacs in this way isn't that big of a deal but I would prefer to have the '&' operator to work as it should. I usually just open two emacs's in separate tabs in a terminal (one with rootly powers and another without) and use F11 to display all open files. However, some things become problematic when emacs in embedded in a terminal rather than its own window.
I would really appreciate any additional help.
Thanks
Yeah, it seems as if you are using emacs embedded in a terminal. It is not possible to fork its own process then, as if you detach it from the terminal it has nowhere to display. If you want a separate terminal to pop up holding it try something like xterm -e emacs &.
Well what do you know... that worked all right.
I appreciate your help. I'll have to try to figure out some way to do this some other way. It works though.
Why not just add an alias to you .bashrc so that this command is executed by something like emac. I'm not sure whether you can overwrite an original command?
Sorry to revive this relatively old thread but I wanted to comment on jw2328's response. Technically, this is not what I wanted, as this simply launches emacs in a separate terminal. I want emacs& to launch emacs in its own non-terminal window (the "emacs" window).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.