diff options
| author | Blake Romero <blake@blkrom.com> | 2025-07-09 23:24:58 +0100 |
|---|---|---|
| committer | Blake Romero <blake@blkrom.com> | 2025-07-09 23:27:13 +0100 |
| commit | 53977b70b869fe1a043ddc1942afd777bcdef0ba (patch) | |
| tree | db6a41a74f1cb79308d07541ee4538804d95b42f | |
| parent | 26c568f8d3fc8f720d7f0aa48e60846a3f99711a (diff) | |
Enable recent files history
| -rw-r--r-- | emacs-config.org | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/emacs-config.org b/emacs-config.org index b7bcbe4..8f9e4f2 100644 --- a/emacs-config.org +++ b/emacs-config.org @@ -120,6 +120,30 @@ Add addtional variable lists to save. (cl-pushnew var savehist-additional-variables)) #+end_src +*** File History +Enable storing history of opened files. +#+begin_src elisp + (recentf-mode) +#+end_src + +Disallow duplicates in history. +#+begin_src elisp + (setq-default history-delete-duplicates t) +#+end_src + +Recentf settings. +#+begin_src elisp + (setq-default + recentf-max-saved-items 50 + recentf-auto-cleanup 'never) +#+end_src + +Save recent files and cleanup file list on exit. +#+begin_src elisp + (add-hook 'kill-emacs-hook #'recentf-cleanup) + (add-hook 'kill-emacs-hook #'recentf-save-list) +#+end_src + *** Cursor Position Enable saving point position. #+begin_src elisp |
