helm-find-files start on a specific directory

195 views
Skip to first unread message

Ribonous

unread,
Jan 30, 2013, 5:16:57 PM1/30/13
to emacs...@googlegroups.com
Is there a way to define an Emacs command (that I could bind to a keyboard shortcut), and that would call helm-find-files to start in a specific directory (e.g. my home directory)?

I noticed that sometimes the default directory for helm-find-files is not ideal (e.g. hundreds of thousands of files on a network path), so I would to invoke it on a specific location when that is the case.

Thanks!

Lukas.

Thierry Volpiatto

unread,
Jan 31, 2013, 12:24:07 AM1/31/13
to Ribonous, emacs...@googlegroups.com
Hi Lukas,

Ribonous <ribonu...@gmail.com> writes:

> Is there a way to define an Emacs command (that I could bind to a keyboard
> shortcut), and that would call helm-find-files to start in a specific
> directory (e.g. my home directory)?

(defun my-find-files ()
(interactive)
(helm-find-files-1 "~/"))

But from anywhere when using helm-find-files, you have shortcuts to
reach home directory, root or default directory, see help (C-c ?)

--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997

MoreChannelNoise

unread,
Aug 31, 2013, 9:27:23 AM8/31/13
to emacs...@googlegroups.com, Ribonous
I tried the code suggested
(defun my-find-files ()
 (interactive)
 (helm-find-files-1 "~/text-files"))

when it try it I get
Smbols function definition is void:   helm-find-files-1

MoreChannelNoise

unread,
Aug 31, 2013, 9:56:00 AM8/31/13
to emacs...@googlegroups.com, Ribonous
I found what was wrong it should have had this above it
(require 'helm-files)
Reply all
Reply to author
Forward
0 new messages