[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/guru-mode adf92d9 12/42: docs & code clean-up
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/guru-mode adf92d9 12/42: docs & code clean-up |
Date: |
Wed, 11 Aug 2021 09:58:28 -0400 (EDT) |
branch: elpa/guru-mode
commit adf92d909a173c67849e66ca8f0af01aecfcc3c4
Author: Bozhidar Batsov <bozhidar@batsov.com>
Commit: Bozhidar Batsov <bozhidar@batsov.com>
docs & code clean-up
---
README.md | 57 ++++++++++++++++++++++++++++++++++++++++++++-------------
guru-mode.el | 13 +++++++------
2 files changed, 51 insertions(+), 19 deletions(-)
diff --git a/README.md b/README.md
index 2de0cfc..98f1579 100644
--- a/README.md
+++ b/README.md
@@ -10,20 +10,7 @@ folder `~/.emacs.d/vendor`:
```lisp
(add-to-list 'load-path "~/emacs.d/vendor")
-```
-
-You can enable `guru-mode` globally like this:
-
-```lisp
(require 'guru-mode)
-(guru-global-mode +1) ;; to enable in all buffers
-```
-
-Most likely you'd like to enable `guru-mode` only in specific modes
-(like `prog-mode` in Emacs 24):
-
-```lisp
-(add-hook 'prog-mode-hook (lambda () (guru-mode +1)))
```
## Marmalade
@@ -42,3 +29,47 @@ you can install guru-mode from the
[MELPA](http://melpa.milkbox.net/) repository
[Emacs Prelude](https://github.com/bbatsov/prelude). If you're a Prelude
user - `guru-mode` is already properly configured and ready for
action.
+
+# Usage
+
+You can enable `guru-mode` globally like this:
+
+```lisp
+(guru-global-mode +1)
+```
+
+Most likely you'd like to enable `guru-mode` only in specific modes
+(like `prog-mode` in Emacs 24):
+
+```lisp
+(add-hook 'prog-mode-hook 'turn-on-guru-mode)
+```
+
+# Share the knowledge
+
+[WikEmacs](http://wikemacs.org) collects useful resources for working
+with GNU Emacs. Please, take the time to peruse and improve them as
+you accumulate knowledge about Emacs. Prelude makes this especially
+easy, since it bundles
+[MediaWiki support](http://wikemacs.org/wiki/Mediawiki.el) + the
+settings required to access WikEmacs right away.
+
+# Known issues
+
+Check out the project's
+[issue
list](https://github.com/bbatsov/guru-mode/issues?sort=created&direction=desc&state=open)
+a list of unresolved issues. By the way - feel free to fix any of them
+and send me a pull request. :-)
+
+# Contributors
+
+Here's a [list](https://github.com/bbatsov/guru-mode/contributors) of all the
people who have contributed to the
+development of guru-mode.
+
+# Bugs & Improvements
+
+Bug reports and suggestions for improvements are always
+welcome. GitHub pull requests are even better! :-)
+
+Cheers,<br/>
+Bozhidar
diff --git a/guru-mode.el b/guru-mode.el
index da93037..7218e59 100644
--- a/guru-mode.el
+++ b/guru-mode.el
@@ -68,23 +68,24 @@
(define-key guru-mode-map
(read-kbd-macro (first cell)) (guru-rebind (first cell) (rest cell))))
-(defun guru-on ()
- "Enable Guru."
+(defun turn-on-guru-mode ()
+ "Enable Guru mode."
(guru-mode +1))
-(defun guru-off ()
- "Disable Guru."
+(defun turn-off-guru-mode ()
+ "Disable Guru mode."
(guru-mode -1))
;;;###autoload
-(define-minor-mode guru-mode "A minor mode that teaches to help you use Emacs
the way it was intended to be used."
+(define-minor-mode guru-mode
+ "A minor mode that teaches you to use Emacs effectively."
:lighter " guru"
:keymap guru-mode-map
:group 'guru)
;; define global minor mode
;;;###autoload
-(define-globalized-minor-mode guru-global-mode guru-mode guru-on)
+(define-globalized-minor-mode guru-global-mode guru-mode turn-on-guru-mode)
(provide 'guru-mode)
;;; guru-mode.el ends here
- [nongnu] elpa/guru-mode 62a9a00 16/42: Bump version to 0.2, (continued)
- [nongnu] elpa/guru-mode 62a9a00 16/42: Bump version to 0.2, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode fc9dc59 17/42: Clean up a bit, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode b33e4d1 18/42: Update hook example, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode 1086b77 20/42: only block keys with bindings in global-map, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode db23636 21/42: Merge pull request #5 from cowboyd/allow-minor-modes-to-reclaim-beginner-keys, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode eb38fb2 23/42: Fix delete key handling, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode 062a417 27/42: Merge pull request #8 from ThibautVerron/keybindings-horizontal-scroll, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode fd80d94 14/42: added contribution guidelines, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode da632fa 26/42: Merge pull request #10 from syohex/update-url, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode ba88b73 09/42: minor documentation update, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode adf92d9 12/42: docs & code clean-up,
ELPA Syncer <=
- [nongnu] elpa/guru-mode a227ee5 15/42: Add the ability to only warn when arrow keys are being used, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode 704a47d 25/42: Update MELPA URL, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode c180e05 30/42: Change "Home" and "End" replacements, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode 3d53276 34/42: [Fix #7] Don't initialize the keymap at load time, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode 71ccf45 37/42: Fix indentation, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode e91cdfb 40/42: Fix broken badge, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode 0c0db11 10/42: Removed a duplicated keybinding in the keymap., ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode c0e92da 13/42: use car/cdr instead of first & rest, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode 6f9392f 19/42: Remove a couple of redundant functions, ELPA Syncer, 2021/08/11
- [nongnu] elpa/guru-mode e7c3500 22/42: Wrong keybindings, ELPA Syncer, 2021/08/11