Fork me on GitHub
#emacs
<
2018-01-18
>
qqq02:01:58

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 ?

qqq04:01:51

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

qqq05:01:46

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 ?

dpsutton05:01:00

Just define your key binding in the lispy mode map

qqq06:01:42

here's my current understanding, please tell me what I'm doing wrong:

qqq06:01:50

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)

qqq06:01:08

this is after C-h v minor-mode-map-alist and seeing lispyville up there defining lispyville-change

qqq06:01:57

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)))

qqq06:01:59

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)

bozhidar06:01:31

@qqq Yeah, you’re right about how I use avy.

qqq07:01:50

how do I configure the # of lines that counsel-imenu shows by default ?

qqq07:01:20

ivy-height