Discussion:
Recent file list?
(too old to reply)
Alex van der Spek
2013-10-04 09:12:53 UTC
Permalink
What little experience I have with emacs makes me want to use it more
often.

Is there in emacs such a feature as "Recent file list?" If so, how do I
activate it? Custom emacs modes are normally activated in a .emacs file.
Unfortunately, such a file is not anywhere to be found on either my
Ubuntu or Debian machines.

Regards,
Alex van der Spek
Loris Bennett
2013-10-04 09:35:59 UTC
Permalink
Post by Alex van der Spek
What little experience I have with emacs makes me want to use it more
often.
Is there in emacs such a feature as "Recent file list?" If so, how do I
activate it? Custom emacs modes are normally activated in a .emacs file.
Unfortunately, such a file is not anywhere to be found on either my
Ubuntu or Debian machines.
Regards,
Alex van der Spek
Have a look at

M-x customize-group recentf

I also have

(define-key global-map "\C-cr" 'recentf-open-files)

in my .emacs

HTH

Loris
--
This signature is currently under construction.
Glyn Millington
2013-10-04 09:56:28 UTC
Permalink
Post by Alex van der Spek
What little experience I have with emacs makes me want to use it more
often.
Is there in emacs such a feature as "Recent file list?" If so, how do
I activate it? Custom emacs modes are normally activated in a .emacs
file. Unfortunately, such a file is not anywhere to be found on
either my Ubuntu or Debian machines.
Create a .emacs file in your home directory and insert these lines:

(recentf-mode 1)
(setq recentf-max-saved-items 30)
(setq recentf-max-menu-items 30)

30 is my own preference, so adjust to taste :-)

You will then have a menu-item under the "File" menu - f you use menus.

Hope that helps


Glyn
Sergei Organov
2013-10-04 10:19:15 UTC
Permalink
Post by Alex van der Spek
What little experience I have with emacs makes me want to use it more
often.
Is there in emacs such a feature as "Recent file list?" If so, how do
I activate it? Custom emacs modes are normally activated in a .emacs
file. Unfortunately, such a file is not anywhere to be found on
either my Ubuntu or Debian machines.
Most probably the OP needs to edit ~/.emacs.d/init.el instead.

HTH

-- Sergei.
a***@gmail.com
2013-11-06 01:17:04 UTC
Permalink
As others have said:
(recentf-mode 1)
will activate logging of files.

(setq recentf-max-saved-items 100)
will save the last 100 files visited.

And then:
M-x recentf-open-files
will pull up a buffer with list of recent files

But sometimes it's easier to just use the menu bar: File -> Open Recent

-deech
r***@gmail.com
2013-12-24 20:18:55 UTC
Permalink
Post by Alex van der Spek
What little experience I have with emacs makes me want to use it more
often.
Is there in emacs such a feature as "Recent file list?" If so, how do I
activate it? Custom emacs modes are normally activated in a .emacs file.
Unfortunately, such a file is not anywhere to be found on either my
Ubuntu or Debian machines.
Regards,
Alex van der Spek
People have suggested recent, but I actually much prefer helm-recentf which comes with the helm group of extensions.

M-x package-install helm
M-x helm-recentf

But bind it to something more useful of course =]

Continue reading on narkive:
Loading...