diff options
author | Stefan Kangas <stefan@marxist.se> | 2022-06-22 11:47:30 +0200 |
---|---|---|
committer | Stefan Kangas <stefan@marxist.se> | 2022-06-22 11:47:30 +0200 |
commit | ec9228eb81c0a89b18480dfff18cc9afdc3d0884 (patch) | |
tree | 8be8d77ea82a05e3711fd3afcf87f31f56560470 /lisp/recentf.el | |
parent | 5b1109394ca8f9d98b6b9cd0f7ef01c179a89351 (diff) | |
download | emacs-ec9228eb81c0a89b18480dfff18cc9afdc3d0884.tar.gz emacs-ec9228eb81c0a89b18480dfff18cc9afdc3d0884.tar.bz2 emacs-ec9228eb81c0a89b18480dfff18cc9afdc3d0884.zip |
Use short file names by default in recentf menu
* lisp/recentf.el (recentf-menu-filter): Set the default to
'recentf-show-abbreviated' to get short file names. (Bug#56123)
Diffstat (limited to 'lisp/recentf.el')
-rw-r--r-- | lisp/recentf.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/recentf.el b/lisp/recentf.el index 09843a89568..b3bb6482d48 100644 --- a/lisp/recentf.el +++ b/lisp/recentf.el @@ -170,7 +170,7 @@ The default is to call `find-file' to edit the selected file." :group 'recentf :type 'integer) -(defcustom recentf-menu-filter nil +(defcustom recentf-menu-filter #'recentf-show-abbreviated "Function used to filter files displayed in the recentf menu. A nil value means no filter. The following functions are predefined: @@ -225,7 +225,8 @@ elements (see `recentf-make-menu-element' for menu element form)." (function-item recentf-arrange-by-mode) (function-item recentf-arrange-by-dir) (function-item recentf-filter-changer) - function)) + function) + :version "29.1") (defcustom recentf-menu-open-all-flag nil "Non-nil means to show an \"All...\" item in the menu. |