-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhelm-cider-history.el
54 lines (50 loc) · 1.76 KB
/
helm-cider-history.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
;;; helm-cider-history.el --- Helm interface for cider history
;;
;; Copyright (C) 2015 Andreas Klein
;;
;; Author: Andreas Klein <[email protected]>
;; URL: https://github.com/Kungi/helm-cider-history
;; Created: 19.07.2015
;; Keywords: convenience
;; Version: 0.0.1
;; Package-Requires: ((helm "1.4.0") (cider "0.9.0"))
;;
;; This file is NOT part of GNU Emacs.
;;
;;; License:
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING. If not, write to the
;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.
;;
;;; Commentary:
;;
;; helm-cider-history integraties cider-input-history with helm
;;
;;; Code:
(require 'helm)
;;;###autoload
(defun helm-cider-history ()
"Show `cider-input-history` in `helm`."
(interactive)
(helm :sources (helm-build-sync-source "Helm Cider History"
:candidates cider-repl-input-history
:action '(("Yank" . (lambda (candidate) (insert candidate))))
:persistent-action (lambda (candidate) (ignore))
:persistent-help "DoNothing"
:multiline t)
:buffer "*helm cider history*"
:resume 'noresume))
(provide 'helm-cider-history)
;;; helm-cider-history.el ends here