[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/ws-butler c907dde343 58/64: Change example config to use p
From: |
Stefan Kangas |
Subject: |
[nongnu] elpa/ws-butler c907dde343 58/64: Change example config to use prog-mode-hook. |
Date: |
Fri, 31 Dec 2021 11:09:35 -0500 (EST) |
branch: elpa/ws-butler
commit c907dde343c04bfcdd10aabb24bf693382bd19bf
Author: alevy03 <alevy03@gmail.com>
Commit: GitHub <noreply@github.com>
Change example config to use prog-mode-hook.
Make the configuration example more general by enabling ws-butler
in all programming modes instead of just ruby.
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 98a73aed28..c8dd836180 100644
--- a/README.md
+++ b/README.md
@@ -42,10 +42,10 @@ There might be lines you don't want to get trimmed, e.g.
spaces in multiline str
To use ws-butler, require it and add ws-butler-mode as a hook on any mode
where you would like it to be enabled. For example, to enable for all
-ruby-mode buffers, add this to your .emacs:
+programming language modes, add this to your .emacs:
(require 'ws-butler)
- (add-hook 'ruby-mode-hook #'ws-butler-mode)
+ (add-hook 'prog-mode-hook #'ws-butler-mode)
Alternatively, you can use ws-butler-global-mode to turn it on everywhere.
- [nongnu] elpa/ws-butler 52321b99be 59/64: Merge pull request #29 from alevy03/master, (continued)
- [nongnu] elpa/ws-butler 52321b99be 59/64: Merge pull request #29 from alevy03/master, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 323b651dd7 55/64: bump version, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler a02607ef63 33/64: Some minor grammatical fixes, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler f6ac856b82 13/64: clean up newlines at EOB when appropriate, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 81143ac737 25/64: Add customization for virtual space preservation., Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 93409c1ca7 51/64: polyfill for setq-local, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler a5add4ea85 39/64: Merge branch 'remove-highlight-changes-mode', Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 7e2f32dcfc 45/64: Merge pull request #22 from spwhitton/apt-get, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 9e7449445b 48/64: Merge branch 'global-mode-exemptions', Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler 8ccf6a0b74 61/64: Merge pull request #31 from hlissner/patch-1, Stefan Kangas, 2021/12/31
- [nongnu] elpa/ws-butler c907dde343 58/64: Change example config to use prog-mode-hook.,
Stefan Kangas <=