Slackware This Forum is for the discussion of Slackware 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.
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.
|
 |
07-18-2005, 04:47 AM
|
#1
|
Member
Registered: Jun 2005
Posts: 167
Rep:
|
Emacs, slow startup
Hi,
I'm using slackware 10.1.
When I start emacs(both console & X), it takes a long time to start. Can anyone tell me how I can make it start faster??
|
|
|
07-18-2005, 12:51 PM
|
#2
|
Member
Registered: Jun 2005
Posts: 111
Rep:
|
Is your hostname resolvable?
|
|
|
07-19-2005, 12:35 AM
|
#3
|
Member
Registered: Jun 2005
Posts: 167
Original Poster
Rep:
|
I'm sorry!
I'm a newbie.
Can u explain this to me??
|
|
|
07-19-2005, 03:41 AM
|
#4
|
Member
Registered: Jun 2005
Posts: 111
Rep:
|
Can you ping your hostname (use the 'hostname' command to see your hostname). If not, you have to add your IP plus hostname to /etc/hosts. Some people who have a problem with EMACS loading slowly do not have a resolvable hostname.
|
|
|
07-19-2005, 05:40 AM
|
#5
|
Member
Registered: Jun 2005
Posts: 167
Original Poster
Rep:
|
My system is not on a network.
Now I remember changing the contents of my /etc/HOSTNAME file.
Its present content is,
Is this what is creating the problem??
If so what would be the ideal content of /etc/HOSTNAME?
|
|
|
07-19-2005, 06:02 AM
|
#6
|
Member
Registered: Jun 2005
Posts: 111
Rep:
|
That is not a legal hostname, hostnames can only consist of 'a-z' and '-' characters (and of course a '.', to make FQDNs like node.example.net). Try changing the hostname to 'penguin-splendor', and adding a line to /etc/hosts that says:
Code:
127.0.0.1 penguin-splendor
You can also use the IP address of an external interface of the machine. After making the changes the hostname should be resolvable, you can test this with
(Be sure to use backticks, this will fill in the output of the hostname command.)
|
|
|
07-19-2005, 06:33 AM
|
#7
|
Member
Registered: Jun 2005
Posts: 167
Original Poster
Rep:
|
Y should I give a IP address in /etc/hosts while I'm not on a network??
Also, can I give any number for IP??
|
|
|
07-19-2005, 07:26 AM
|
#8
|
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721
Rep:
|
127.0.0.1 is the ip address of your loopback interface.
if you connect to it, you're just connecting to your own pc.
so , adding the line that GlowGlow posted to /etc/hosts
should solve it.
egag
Last edited by egag; 07-19-2005 at 07:27 AM.
|
|
|
07-19-2005, 08:18 AM
|
#9
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,797
|
There is a warning commented in /etc/hosts though...
Code:
# By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1
# should NEVER be named with the name of the machine. It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
#
|
|
|
07-19-2005, 09:06 AM
|
#10
|
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721
Rep:
|
that brings the Q. : is emacs using the name in /etc/HOSTNAME or " localhost "
i have for my loopback in /etc/hosts :
127.0.0.1 localhost
i think that should be ok then.
egag
|
|
|
07-19-2005, 09:34 AM
|
#11
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,797
|
and another Q : is emacs a stupid program ? 
Sorry for kidding, but why a text editor would need
to know the hostname in order to work ?...
|
|
|
07-19-2005, 10:07 AM
|
#12
|
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721
Rep:
|
well...i could imagine you could give a "host=" option to edit files on another machine,
but i didn't find anything like that.
but maybe you were not kidding, the makers of the doc.'s are...
see:
/usr/share/emacs/21.3/etc/condom.1
/usr/share/emacs/21.3/etc/COOKIES
----maybe more---
egag
|
|
|
07-20-2005, 12:49 AM
|
#13
|
Member
Registered: Jun 2005
Posts: 167
Original Poster
Rep:
|
Not did this thread solve my problem. It has also given me a basic understanding of hostname.
Emacs is a really cool editor. In fact I use it even on the windoze systems in my college.
Last edited by chandru.in; 07-20-2005 at 12:51 AM.
|
|
|
All times are GMT -5. The time now is 09:28 PM.
|
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
|
|