emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/inf-clojure ca57a86 020/313: [Fix #3] Remove automatic add


From: ELPA Syncer
Subject: [nongnu] elpa/inf-clojure ca57a86 020/313: [Fix #3] Remove automatic addition of inf-clojure-minor-mode to clojure-mode-hook
Date: Wed, 11 Aug 2021 09:59:38 -0400 (EDT)

branch: elpa/inf-clojure
commit ca57a8673a6216bbb3f052e335f6994841554e30
Author: Bozhidar Batsov <bozhidar@batsov.com>
Commit: Bozhidar Batsov <bozhidar@batsov.com>

    [Fix #3] Remove automatic addition of inf-clojure-minor-mode to 
clojure-mode-hook
    
    Users should do this manually.
---
 README.md      | 7 +++++++
 inf-clojure.el | 7 -------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md
index 37b1753..c5c14d2 100644
--- a/README.md
+++ b/README.md
@@ -32,6 +32,13 @@ If the installation doesn't work try refreshing the package 
list:
 
 <kbd>M-x package-refresh-contents</kbd>
 
+Add the following to your Emacs config to enable
+`inf-clojure-minor-mode` for Clojure source buffers:
+
+```el
+(add-hook 'clojure-mode-hook 'inf-clojure-minor-mode)
+```
+
 ## Usage
 
 `M-x inf-clojure` or `C-c C-z` within a Clojure source file.
diff --git a/inf-clojure.el b/inf-clojure.el
index 70ad7c6..ccf9c41 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -34,9 +34,6 @@
 ;;
 ;;    (autoload 'inf-clojure "inf-clojure" "Run an inferior Clojure process" t)
 ;;    (add-hook 'clojure-mode-hook 'inf-clojure-minor-mode)
-;;
-;; Installation via ELPA interface does the above for you
-;; automatically.
 
 ;;; Code:
 
@@ -569,10 +566,6 @@ Returns the selected completion or nil."
                 (completion-table-with-cache #'inf-clojure-completions)
               (completion-table-dynamic #'inf-clojure-completions))))))
 
-;;;###autoload
-(dolist (mode inf-clojure-source-modes)
-  (add-hook (intern (format "%s-hook" mode)) 'inf-clojure-minor-mode))
-
 (provide 'inf-clojure)
 
 ;;; inf-clojure.el ends here



reply via email to

[Prev in Thread] Current Thread [Next in Thread]