[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] scratch/editorconfig-cc 0a319fab78 033/351: Add global minor mo
From: |
Stefan Monnier |
Subject: |
[nongnu] scratch/editorconfig-cc 0a319fab78 033/351: Add global minor mode |
Date: |
Thu, 13 Jun 2024 18:38:38 -0400 (EDT) |
branch: scratch/editorconfig-cc
commit 0a319fab7845153a91fbd12ff1174f2808e2ed2c
Author: 10sr <8slashes+git@gmail.com>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
Add global minor mode
---
editorconfig.el | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/editorconfig.el b/editorconfig.el
index f362ea7061..488b6aa882 100644
--- a/editorconfig.el
+++ b/editorconfig.el
@@ -132,6 +132,16 @@ property emacs_linum to decide whether to show line
numbers on the left
(funcall hook props)))
(display-warning :error "EditorConfig core program is not available.
Styles will not be applied."))))
+;;;###autoload
+(define-minor-mode edconf-mode
+ "Toggle EditorConfig feature."
+ :global t
+ :lighter ""
+ (if edconf-mode
+ (add-hook 'find-file-hook
+ 'edconf-find-file-hook)
+ (remove-hook 'find-file-hook
+ 'edconf-find-file-hook)))
;;;###autoload
(add-to-list 'auto-mode-alist '("/\\.editorconfig\\'" . conf-unix-mode))
- [nongnu] scratch/editorconfig-cc 0efb6ea02f 039/351: Add 10sr to the contributor list, (continued)
- [nongnu] scratch/editorconfig-cc 0efb6ea02f 039/351: Add 10sr to the contributor list, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 16bd394d1f 036/351: Add aliases for obsolete variables and bump version, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc d7a42c819c 043/351: Add editorconfig-core el files, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 46eb2863da 031/351: Add autoload cookie, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 0b31539954 072/351: Throw error when editorconfig executable was not found, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 21ea6f23c2 063/351: Support charset property, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 2ddf470e7b 062/351: Bump version: 0.6.2, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 9d1d236431 021/351: Don't set max_line_length if not specified., Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc fbe97a0824 014/351: Wrong way to indent html. Fixes it., Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc d1ea0124c5 040/351: Do nothing when current buffer does not visit any file, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 0a319fab78 033/351: Add global minor mode,
Stefan Monnier <=
- [nongnu] scratch/editorconfig-cc b08e13aefa 042/351: Add files used to test core functions, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc d776cdc5ee 020/351: Support max_line_length., Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc d83aba5206 055/351: Bump version: 0.6.1, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc b4911d662f 075/351: Already 2016 :) Happy new year!, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 75139b95da 059/351: Use dedicated functions to manipulate hook, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc ca854b55ff 064/351: Update README for charset support, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 649e645106 076/351: Bump version to 0.7.2, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc de2b791957 083/351: Add editorconfig-exclude-modes, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 044453e7ac 080/351: Add editorconfig-conf-mode, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc c93d216f39 087/351: Do not check metadata of files other than editorconfig.el, Stefan Monnier, 2024/06/13