Add winner hydra
This commit is contained in:
parent
df96e09514
commit
0fa71cfa72
@ -1196,8 +1196,18 @@ whenever there is an error.
|
|||||||
*** winner
|
*** winner
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package winner
|
(use-package winner
|
||||||
|
:after hydra
|
||||||
:demand t
|
:demand t
|
||||||
:config (winner-mode 1))
|
:commands (winner-undo winner-redo)
|
||||||
|
:config
|
||||||
|
(progn
|
||||||
|
(bind-key
|
||||||
|
"C-c q"
|
||||||
|
(defhydra imalison:winner-hydra ()
|
||||||
|
"Winner"
|
||||||
|
("p" winner-undo "back")
|
||||||
|
("n" winner-redo "forward" :exit t)))
|
||||||
|
(winner-mode 1)))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** Keybindings
|
** Keybindings
|
||||||
*** bind-key
|
*** bind-key
|
||||||
@ -2155,11 +2165,13 @@ The following is taken from [[https://github.com/syl20bnr/spacemacs/blob/a650877
|
|||||||
(progn
|
(progn
|
||||||
(add-to-list 'magic-mode-alist '("#!.*boot\\s-*$" . clojure-mode))
|
(add-to-list 'magic-mode-alist '("#!.*boot\\s-*$" . clojure-mode))
|
||||||
(add-to-list 'auto-mode-alist '("\\.boot\\'" . clojure-mode))
|
(add-to-list 'auto-mode-alist '("\\.boot\\'" . clojure-mode))
|
||||||
|
|
||||||
(defun imalison:clojure-mode-hook ()
|
(defun imalison:clojure-mode-hook ()
|
||||||
;; (cljr-add-keybindings-with-prefix "C-c C-m")
|
;; (cljr-add-keybindings-with-prefix "C-c C-m")
|
||||||
(clj-refactor-mode 1)
|
(clj-refactor-mode 1)
|
||||||
;;for adding require/use/import statements
|
;;for adding require/use/import statements
|
||||||
(yas-minor-mode 1))
|
(yas-minor-mode 1))
|
||||||
|
|
||||||
(defvar imalison:clojure-level-1-symobls
|
(defvar imalison:clojure-level-1-symobls
|
||||||
'(describe it)))
|
'(describe it)))
|
||||||
:config
|
:config
|
||||||
|
Loading…
Reference in New Issue
Block a user