Browse Source

Change func nam

master
10sr 5 years ago
parent
commit
138f00b48d
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      emacs.el

+ 3
- 3
emacs.el View File

@@ -2006,11 +2006,11 @@ Return that buffer."
:lighter "" :lighter ""
(if editorconfig-auto-apply-mode (if editorconfig-auto-apply-mode
(add-hook 'after-save-hook (add-hook 'after-save-hook
'editorconfig-auto-apply-mode--when-save)
'editorconfig-auto-apply-mode--run)
(remove-hook 'after-save-hook (remove-hook 'after-save-hook
'editorconfig-auto-apply-mode--when-save)))
'editorconfig-auto-apply-mode--run)))


(defun editorconfig-auto-apply-mode--when-save ()
(defun editorconfig-auto-apply-mode--run ()
"When saving .editorconfig file walk all buffers and update configs." "When saving .editorconfig file walk all buffers and update configs."
(when (eq major-mode (when (eq major-mode
'editorconfig-conf-mode) 'editorconfig-conf-mode)


Loading…
Cancel
Save