branch: scratch/editorconfig-cc
commit 49c0563f03c145a77bb01befbeebf58fecc35394
Author: 10sr <8.slas...@gmail.com>
Commit: Stefan Monnier <monn...@iro.umontreal.ca>

    Do not run editorconfig-apply on recentf-save-file (#241)
---
 editorconfig.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/editorconfig.el b/editorconfig.el
index 6fbde1e678..1ea235d87c 100644
--- a/editorconfig.el
+++ b/editorconfig.el
@@ -270,6 +270,11 @@ When variable `buffer-file-name' matches any of the 
regexps, then
 `editorconfig-mode-apply' will not do its work."
   :type '(repeat string)
   :group 'editorconfig)
+(with-eval-after-load 'recentf
+  (add-to-list 'editorconfig-exclude-regexps
+               (rx-to-string '(seq string-start
+                                   (eval (expand-file-name recentf-save-file)))
+                             t)))
 
 (defcustom editorconfig-trim-whitespaces-mode nil
   "Buffer local minor-mode to use to trim trailing whitespaces.

Reply via email to