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

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

[nongnu] elpa/flymake-kondor 0de12e7 04/19: melpa and github instruction


From: ELPA Syncer
Subject: [nongnu] elpa/flymake-kondor 0de12e7 04/19: melpa and github instructions
Date: Fri, 8 Oct 2021 08:58:05 -0400 (EDT)

branch: elpa/flymake-kondor
commit 0de12e7674ffe7ef7f951020ee3cbe136abbe16e
Author: admin@turbocafe.in.eu.org <admin@turbocafe.in.eu.org>
Commit: admin@turbocafe.in.eu.org <admin@turbocafe.in.eu.org>

    melpa and github instructions
---
 README.org        | 46 +++++++++++++++++++++++++++++++++++-----------
 flymake-kondor.el |  1 +
 2 files changed, 36 insertions(+), 11 deletions(-)

diff --git a/README.org b/README.org
index d79ca2d..e7b459d 100644
--- a/README.org
+++ b/README.org
@@ -2,22 +2,46 @@
 #+TITLE: flymake backend clj-kondo
 #+AUTHOR: https://turbocafe.keybase.pub
 
-this package integrates clj-kondo a clojure linter into emacs'
-flymake; get clj-kondo following 
[[https://github.com/borkdude/clj-kondo/blob/master/doc/install.md][installation
 instructions]]; 
+this  package  integrates  clj-kondo  a  clojure  linter  into  emacs'
+flymake; if you  use flymake you may have something  like following in
+init.el
 
-this package  isn't on  melpa, so emacs  has to load  it from  where i
-store flymake-kondor.el, i do it with use-package, like below
+#+BEGIN_SRC emacs-lisp
+(use-package flymake
+  :ensure nil
+  :bind (([f8] . flymake-goto-next-error)
+         ([f7] . flymake-goto-prev-error))
+  :hook (prog-mode . (lambda () (flymake-mode t)))
+  :config (remove-hook 'flymake-diagnostic-functions 
'flymake-proc-legacy-flymake))
+#+END_SRC
+
+to use this package get clj-kondo following 
[[https://github.com/borkdude/clj-kondo/blob/master/doc/install.md][installation
 instructions]];
+then proceed with your preferred way of adding packages
+
+* melpa
+
+#+BEGIN_SRC emacs-lisp
+(use-package flymake-kondor
+  :ensure t
+  :hook (clojure-mode . flymake-kondor-setup))
+#+END_SRC
+
+* elget
+
+#+BEGIN_SRC emacs-lisp
+(el-get-bundle flymake-kondor
+               :url 
"https://raw.githubusercontent.com/turbo-cafe/flymake-kondor/master/flymake-kondor.el";
+               (add-hook 'clojure-mode-hook 'flymake-kondor-setup))
+#+END_SRC
+
+* local
 
-#+BEGIN_SRC emasc-lisp
+#+BEGIN_SRC emacs-lisp
 (use-package flymake-kondor
   :ensure flymake-quickdef
   :after flymake
-  :load-path "~/.emacs.d/site-lisp/flymake-kondor"
-  :init
-  (add-hook 'clojure-mode-hook #'flymake-kondor-setup)
-  :config
-  (define-key flymake-mode-map (kbd "<f8>") 'flymake-goto-next-error)
-  (define-key flymake-mode-map (kbd "<f7>") 'flymake-goto-prev-error))
+  :load-path "site-lisp/flymake-kondor"
+  :hook (clojure-mode . flymake-kondor-setup))
 #+END_SRC
 
 when in clojure-mode flymake-mode is activated and you can navigate to
diff --git a/flymake-kondor.el b/flymake-kondor.el
index 8b03c73..3c64302 100644
--- a/flymake-kondor.el
+++ b/flymake-kondor.el
@@ -35,6 +35,7 @@
 
 ;;; Code:
 
+(require 'flymake)
 (require 'flymake-quickdef)
 
 (flymake-quickdef-backend flymake-kondor-backend



reply via email to

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