aboutsummaryrefslogtreecommitdiff
path: root/emacs/init.org
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2017-02-07 17:02:43 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2017-02-07 17:02:43 +0100
commit74860a68f092ce7d195eb83c6b6de7a0cb77acdc (patch)
treeeceb260a1cf42283a870d272bf88e1f78ef4734c /emacs/init.org
parenta16ea495b499e5c7c7fc16a447ddaf11a0136bc5 (diff)
downloaddotfiles-74860a68f092ce7d195eb83c6b6de7a0cb77acdc.tar.gz
dotfiles-74860a68f092ce7d195eb83c6b6de7a0cb77acdc.zip
emacs: added recentf
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'emacs/init.org')
-rw-r--r--emacs/init.org12
1 files changed, 12 insertions, 0 deletions
diff --git a/emacs/init.org b/emacs/init.org
index 4e7fc22..79c332f 100644
--- a/emacs/init.org
+++ b/emacs/init.org
@@ -266,6 +266,18 @@ No backups
(setq-default auto-save-default nil)
#+END_SRC
+But at least save the list of recently open files.
+
+#+BEGIN_SRC elisp
+(require 'recentf)
+
+(recentf-mode 1)
+(global-set-key "\C-x\ \C-r" 'recentf-open-files)
+
+; Save the list every 5 minutes
+(run-at-time nil (* 5 60) 'recentf-save-list)
+#+END_SRC
+
No welcome screen
#+BEGIN_SRC elisp