This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-18
Channels
- # architecture (25)
- # beginners (57)
- # boot (3)
- # cider (38)
- # clara (6)
- # cljsrn (6)
- # clojure (54)
- # clojure-china (4)
- # clojure-greece (1)
- # clojure-italy (3)
- # clojure-romania (1)
- # clojure-russia (7)
- # clojure-spec (68)
- # clojure-uk (46)
- # clojurescript (73)
- # community-development (2)
- # core-async (7)
- # cursive (17)
- # datomic (143)
- # duct (2)
- # emacs (12)
- # events (5)
- # figwheel (3)
- # fulcro (15)
- # hoplon (19)
- # jobs (12)
- # jobs-discuss (85)
- # nginx (3)
- # off-topic (111)
- # onyx (7)
- # other-languages (1)
- # re-frame (30)
- # reagent (19)
- # remote-jobs (1)
- # ring (7)
- # rum (1)
- # shadow-cljs (18)
- # spacemacs (4)
- # specter (4)
- # sql (24)
- # test-check (1)
- # unrepl (10)
- # vim (6)
- # yada (1)
so let me get this straight, your preferred way of navigation is: 1. look at word you want to jump to 2. hit hot key to activate avy-goto-word-1 3. press first letter of word 4. look on screen, looking for the likttle "red overlay letters' to pop up 5. hit the right combo for the overlay char 6. cursor moves there ?
I'm trying to ditch helm. However, I can't find a replacement for: https://github.com/alphapapa/helm-org-rifle basically, I want to hit some hotkey, then narrow through all ORG-MODE-HEADERS
I have a piece of code that looks like:
(general-define-key :keymaps 'evil-normal-state-map
"h" (lambda () (interactive) (evil-previous-open-paren 1) (evil-insert 0))
"l" (lambda () (interactive) (evil-next-close-paren 1) (evil-append 0))
"j" 'lispy-outline-next
"k" 'lispy-outline-prev
";" (lambda () (interactive)
(evil-next-line 1) (evil-previous-line 1) (evil-first-non-blank)
(org-cycle) (indent-sexp))
"\\" '(lambda () (interactive) (recenter-top-bottom))
"q" 'hh-q/body "w" 'hh-w/body "e" 'hh-e/body "t" 'hh-t/body
"a" 'hh-a/body "s" 'hh-s/body "f" 'hh-f/body "g" 'hh-g/body
"z" 'hh-z/body "x" 'hh-x/body "v" 'hh-v/body "c" 'hh-c/body "b" 'hh-b/body
"H" 'hh-H/body)
this is great, EXCEPT that lispyville overwrites my definitions of "c", installing lispyville-change overwriting my hh-c/body
I'm not sure how the order of keymaps work in emacs for minor mode, but how do I ensure mine has a higher precedence than lispyville-change ?I have no added:
(general-define-key :keymaps 'lispyville-normal-state-map
"q" 'hh-q/body "w" 'hh-w/body "e" 'hh-e/body "t" 'hh-t/body
"a" 'hh-a/body "s" 'hh-s/body "f" 'hh-f/body "g" 'hh-g/body
"z" 'hh-z/body "x" 'hh-x/body "v" 'hh-v/body "c" 'hh-c/body "b" 'hh-b/body
"H" 'hh-H/body)
this is after C-h v minor-mode-map-alist and seeing lispyville up there defining lispyville-change
in particular, lispyville defines this, which I'm trying to overwrite:
(lispyville-mode keymap
(emacs-state keymap "Auxiliary keymap for Emacs state"
(23 . lispyville-delete-backward-word))
(insert-state keymap "Auxiliary keymap for Insert state"
(23 . lispyville-delete-backward-word))
(visual-state keymap "Auxiliary keymap for Visual state"
(88 . lispyville-delete-char-or-splice-backwards)
(120 . lispyville-delete-char-or-splice)
(67 . lispyville-change-line)
(68 . lispyville-delete-line)
(89 . lispyville-yank-line)
(99 . lispyville-change)
(100 . lispyville-delete)
(121 . lispyville-yank))
(normal-state keymap "Auxiliary keymap for Normal state"
(88 . lispyville-delete-char-or-splice-backwards)
(120 . lispyville-delete-char-or-splice)
(67 . lispyville-change-line)
(68 . lispyville-delete-line)
(89 . lispyville-yank-line)
(99 . lispyville-change)
(100 . lispyville-delete)
(121 . lispyville-yank)))
got it working, what I needed was:
(general-define-key :keymaps 'lispyville-mode-map
:states '(normal)
"q" 'hh-q/body "w" 'hh-w/body "e" 'hh-e/body "t" 'hh-t/body
"a" 'hh-a/body "s" 'hh-s/body "f" 'hh-f/body "g" 'hh-g/body
"z" 'hh-z/body "x" 'hh-x/body "v" 'hh-v/body "c" 'hh-c/body "b" 'hh-b/body
"H" 'hh-H/body)