Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NORMAL mode not working. #241

Closed
zenny opened this issue May 9, 2022 · 4 comments
Closed

NORMAL mode not working. #241

zenny opened this issue May 9, 2022 · 4 comments

Comments

@zenny
Copy link

zenny commented May 9, 2022

Hi,

I borrowed the configs from https://github.com/DogLooksGood/dogEmacs. I just made changes to init-modal.el as follows:

;;; -*- lexical-binding: t -*-

(straight-use-package 'meow)
;; (setq meow-use-dynamic-face-color nil)

(defun meow-setup ()
  (setq meow-cheatsheet-layout meow-cheatsheet-layout-qwerty)
  (meow-motion-overwrite-define-key
   '("j" . meow-next)
   '("k" . meow-prev))
  (meow-leader-define-key
   ;; SPC j/k will run the original command in MOTION state.
   '("j" . "H-j")
   '("k" . "H-k")
   ;; Use SPC (0-9) for digit arguments.
   '("1" . meow-digit-argument)
   '("2" . meow-digit-argument)
   '("3" . meow-digit-argument)
   '("4" . meow-digit-argument)
   '("5" . meow-digit-argument)
   '("6" . meow-digit-argument)
   '("7" . meow-digit-argument)
   '("8" . meow-digit-argument)
   '("9" . meow-digit-argument)
   '("0" . meow-digit-argument)
   '("/" . meow-keypad-describe-key)
   '("?" . meow-cheatsheet))
  (meow-normal-define-key
   '("0" . meow-expand-0)
   '("9" . meow-expand-9)
   '("8" . meow-expand-8)
   '("7" . meow-expand-7)
   '("6" . meow-expand-6)
   '("5" . meow-expand-5)
   '("4" . meow-expand-4)
   '("3" . meow-expand-3)
   '("2" . meow-expand-2)
   '("1" . meow-expand-1)
   '("-" . negative-argument)
   '(";" . meow-reverse)
   '("," . meow-inner-of-thing)
   '("." . meow-bounds-of-thing)
   '("[" . meow-beginning-of-thing)
   '("]" . meow-end-of-thing)
   '("a" . meow-append)
   '("A" . meow-open-below)
   '("b" . meow-back-word)
   '("B" . meow-back-symbol)
   '("c" . meow-change)
   '("d" . meow-delete)
   '("D" . meow-backward-delete)
   '("e" . meow-next-word)
   '("E" . meow-next-symbol)
   '("f" . meow-find)
   '("g" . meow-cancel-selection)
   '("G" . meow-grab)
   '("h" . meow-left)
   '("H" . meow-left-expand)
   '("i" . meow-insert)
   '("I" . meow-open-above)
   '("j" . meow-next)
   '("J" . meow-next-expand)
   '("k" . meow-prev)
   '("K" . meow-prev-expand)
   '("l" . meow-right)
   '("L" . meow-right-expand)
   '("m" . meow-join)
   '("n" . meow-search)
   '("o" . meow-block)
   '("O" . meow-to-block)
   '("p" . meow-yank)
   '("q" . meow-quit)
   '("Q" . meow-goto-line)
   '("r" . meow-replace)
   '("R" . meow-swap-grab)
   '("s" . meow-kill)
   '("t" . meow-till)
   '("u" . meow-undo)
   '("U" . meow-undo-in-selection)
   '("v" . meow-visit)
   '("w" . meow-mark-word)
   '("W" . meow-mark-symbol)
   '("x" . meow-line)
   '("X" . meow-goto-line)
   '("y" . meow-save)
   '("Y" . meow-sync-grab)
   '("z" . meow-pop-selection)
   '("'" . repeat)
    '("<escape>" . mode-line-other-buffer)))

(require 'meow)
;; ;; (meow-setup)
;;(meow-global-mode 1)
(meow-setup-indicator)

(provide 'init-modal)

Despite evaluating the buffer, none of the keybindings appears to work, but reports j is undefined and it goes on with everything!

Could not figure out exactly why it is not working?

@Linerre
Copy link
Contributor

Linerre commented May 9, 2022

Hello @zenny,

You just commented out the (meow-global-mode 1) line, which is supposed to enable meow.
The creator's configs for both qwerty and Dvorak all have this line uncommented.

The config he's using currently also includes that line, conditionally, though:
https://github.com/DogLooksGood/meomacs/blob/master/editor.org#meow

Could you try to uncomment that line to see if meow works?

@zenny
Copy link
Author

zenny commented May 9, 2022

Hello @Linerre

Hello @zenny,

Thanks for your input.

You just commented out the (meow-global-mode 1) line, which is supposed to enable meow. The creator's configs for both qwerty and Dvorak all have this line uncommented.

I have tried with the meow-global-mode 1 which didn't work. So I commented our the line and tried to make it work by manually enabling the micromode (M-x meow-global-mode). But no go.

The config he's using currently also includes that line, conditionally, though: https://github.com/DogLooksGood/meomacs/blob/master/editor.org#meow

Could you try to uncomment that line to see if meow works?

Already done, but no go. :(

@Linerre
Copy link
Contributor

Linerre commented May 9, 2022

Did you also uncomment the (meow-setup) line? This line will make all your keybindings above effective.
And then (global-meow-mode 1) enables meow.

It seems you successfully installed meow (via straight.el), since you haven't mentioned any errors saying any meow-xxx command is void.

@zenny
Copy link
Author

zenny commented May 9, 2022

Did you also uncomment the (meow-setup) line? This line will make all your keybindings above effective. And then (global-meow-mode 1) enables meow.

@Linerre Thanks that did the trick. Cheers.

It seems you successfully installed meow (via straight.el), since you haven't mentioned any errors saying any meow-xxx command is void.

@zenny zenny closed this as completed May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants