all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Please Help me to find the .emacs file.
@ 2010-03-02 18:29 pkrakesh
  2010-03-02 18:46 ` Andre Ramaciotti
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: pkrakesh @ 2010-03-02 18:29 UTC (permalink / raw)
  To: help-gnu-emacs

I am new to Emacs. I am using Ubuntu 8.10 and using Emacs 22 GTK. I
cannot able to find neither ~/.emacs file nor ~/.emacs.d/init.el in my
home folder. Where can I find the above file ? Anyone please help me.
Thanks.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Please Help me to find the .emacs file.
  2010-03-02 18:29 Please Help me to find the .emacs file pkrakesh
@ 2010-03-02 18:46 ` Andre Ramaciotti
  2010-03-03  5:20 ` Drew Adams
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Andre Ramaciotti @ 2010-03-02 18:46 UTC (permalink / raw)
  To: help-gnu-emacs

Just create them, as you would create any other file.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Please Help me to find the .emacs file.
  2010-03-02 18:29 Please Help me to find the .emacs file pkrakesh
  2010-03-02 18:46 ` Andre Ramaciotti
@ 2010-03-03  5:20 ` Drew Adams
  2010-03-03 10:04 ` Suvayu Ali
       [not found] ` <87iq9epbfs.fsf@informatimago.com>
  3 siblings, 0 replies; 5+ messages in thread
From: Drew Adams @ 2010-03-03  5:20 UTC (permalink / raw)
  To: 'pkrakesh', help-gnu-emacs

> I am new to Emacs. I am using Ubuntu 8.10 and using Emacs 22 GTK. I
> cannot able to find neither ~/.emacs file nor ~/.emacs.d/init.el in my
> home folder. Where can I find the above file ? Anyone please help me.

Start Emacs. Then do this:

C-x d ~/ RET

That will put you in your HOME directory (~/), even if you've forgotten where
that is.

C-x C-f ~/.emacs RET

That will put you in your .emacs file. If you don't yet have one, it will open a
new file buffer for you to edit.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Please Help me to find the .emacs file.
  2010-03-02 18:29 Please Help me to find the .emacs file pkrakesh
  2010-03-02 18:46 ` Andre Ramaciotti
  2010-03-03  5:20 ` Drew Adams
@ 2010-03-03 10:04 ` Suvayu Ali
       [not found] ` <87iq9epbfs.fsf@informatimago.com>
  3 siblings, 0 replies; 5+ messages in thread
From: Suvayu Ali @ 2010-03-03 10:04 UTC (permalink / raw)
  To: help-gnu-emacs

On 02/03/10 07:29 PM, pkrakesh wrote:
> I am new to Emacs. I am using Ubuntu 8.10 and using Emacs 22 GTK. I
> cannot able to find neither ~/.emacs file nor ~/.emacs.d/init.el in my
> home folder. Where can I find the above file ? Anyone please help me.
> Thanks.
>

If you are trying to find it with nautilus, you won't be able to find 
it. In any *nix system filenames starting with a dot are hidden by 
default. To use nautilus to find your .emacs, tick "show hidden files" 
from the "View" menu.

The path for your .emacs file is /home/<username>/.emacs

HTH

-- 
Suvayu

Open source is the future. It sets us free.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Please Help me to find the .emacs file.
       [not found]   ` <jwv1vg1fj9z.fsf-monnier+gnu.emacs.help@gnu.org>
@ 2010-03-04  9:13     ` Pascal J. Bourguignon
  0 siblings, 0 replies; 5+ messages in thread
From: Pascal J. Bourguignon @ 2010-03-04  9:13 UTC (permalink / raw)
  To: help-gnu-emacs

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> If you want to know what directory is used by Emacs as home, you may use
>> this function:
>
> Hmm.... this code looks rather odd:
>
>> (defun dirname (path)
>>   (if (string-match "^\\(.*/\\)\\([^/]*\\)$" path)
>>       (match-string 1 path)
>>     "./"))
>
> Why not use (or (file-name-directory filename) "./") ?

Either because I didn't know about it or it didn't exist when I wrote
dirname.


>> (defun user-homedir-pathname ()
>>   (if user-init-file
>>       (dirname user-init-file)
>>     (dirname (first (file-expand-wildcards "~/.emacs")))))
>
> There are no wildcards in "~/.emacs", so why use file-expand-wildcards?
>
> In any case the homedir is defined as "~" so (expand-file-name "~")
> is really all you need.

Thanks.

-- 
__Pascal Bourguignon__
http://www.informatimago.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-03-04  9:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-02 18:29 Please Help me to find the .emacs file pkrakesh
2010-03-02 18:46 ` Andre Ramaciotti
2010-03-03  5:20 ` Drew Adams
2010-03-03 10:04 ` Suvayu Ali
     [not found] ` <87iq9epbfs.fsf@informatimago.com>
     [not found]   ` <jwv1vg1fj9z.fsf-monnier+gnu.emacs.help@gnu.org>
2010-03-04  9:13     ` Pascal J. Bourguignon

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.