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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
04-17-2009, 05:51 PM
|
#1
|
Member
Registered: Jan 2009
Posts: 48
Rep:
|
how do you start typing in emacs?
boy this must be stupid question of the week at least.
I'm a vi/vim user and also pity anybody who has to ask "how do I start typing in vi?" However, they usually end up typing "i" by accident and then it dawns.
However, I'm having trouble in emacs. I've googled and I'm just getting the usual verbose introductions. I thought I could just go and type, but nothing is happening.
I suspect I'm in the wrong mode ... so what the indicator for the mode I am in? What is the "insert" key for emacs?
thanks for patient replies.
|
|
|
04-18-2009, 04:48 AM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006
Rep:
|
Are you serious?
Emacs doesn't have modes like Vi/Vim. When you open it you can start typing straight away.
Could be that the buffer is read-only but it should give message in the lower part of screen in that case.
Is the Emacs screen empty when you start typing or does it contain any text already? For example if you are in the startup info page you can't type but I think it should vanish as soon as you type something. It then should be in the scratch buffer and nothing should prevent you from typing.
|
|
|
04-18-2009, 07:02 AM
|
#3
|
Member
Registered: Jan 2009
Posts: 48
Original Poster
Rep:
|
yes, I'm being serious ... you see some frivolity in the way I'm writing? Well it shouldn't be there.
Granted, it's a stupid question, but I admitted that from the very first minute.
So this situation continues. What I get is a welcome screen full of help type text and the emacs logo. Typing keys doesn't work here.
I create a new horizontal window via "ctrl+x,2" and it gives me the same welcome page, again, no reaction to typing.
If I "touch" a file before starting emacs and run emacs on it, I am in fact able to type in it no problem.
So, this seems to affect only the open, "welcome" buffer. Perhaps it should be that way, I'm not sure.
|
|
|
04-18-2009, 01:33 PM
|
#4
|
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591
Rep: 
|
call emacs
emacs somefile
then you can write to somefile and save with Ctrl-xs.
if you open just with "emacs" you can call Ctrl-xf and you'll be prompted to enter the name of the file you want to edit...
Last edited by j-ray; 04-18-2009 at 01:36 PM.
|
|
|
04-18-2009, 01:40 PM
|
#5
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824
|
Thanks, as a vi user myself, the concept of needing a file name first is foreign to me. You can start vi, hit 'i' and start typing, and the welcome text disappears.
|
|
|
04-18-2009, 05:30 PM
|
#6
|
Member
Registered: Dec 2006
Location: Oregon
Distribution: RHEL[567] x86_64, Ubuntu 17.10 x86_64
Posts: 221
Rep:
|
Quote:
Originally Posted by urentity
yes, I'm being serious ... you see some frivolity in the way I'm writing? Well it shouldn't be there.
|
When I read your post, I thought at first that you might have something seriously busted with your setup. But it is actually a limitation of the Emacs startup buffer that can trip up new users.
See Emacs Bootstrap Tutorial that I've written that should help you avoid the some of the initial pitfalls when first starting to use Emacs.
bgoodr
|
|
|
04-19-2009, 03:50 AM
|
#7
|
Senior Member
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006
Rep:
|
You can add following to your ~/.emacs file to disable the default startup screen
Code:
(setq inhibit-startup-message t) ; no splash screen
|
|
|
All times are GMT -5. The time now is 12:27 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|