Skip to content

Commit

Permalink
Simplify the default meow-mode-state-list (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
Linerre authored Nov 21, 2024
1 parent c0985b3 commit 4a9297d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 36 deletions.
15 changes: 7 additions & 8 deletions CUSTOMIZATIONS.org
Original file line number Diff line number Diff line change
Expand Up @@ -112,22 +112,21 @@ see the documentation for the internal function =meow-register-state=.
Default:

#+begin_src emacs-lisp
((fundamental-mode . normal)
(text-mode . normal)
((conf-mode . normal)
(fundamental-mode . normal)
(help-mode . motion)
(prog-mode . normal)
(conf-mode . normal)
(json-mode . normal)
...)
(text-mode . normal))
#+end_src

A list of rules to specify the initial Meow state for major mode.
A list of rules: each of which specifies the initial Meow state for a major mode.

Value should be a list, each item is ~(major-mode . init-state)~.
The ~init-state~ can be any state, including custom ones.

By default, Meow will use ~motion~ for special modes (in which none of
By default, Meow uses ~motion~ for special modes (in which none of
the alphabet keys trigger a `self-insert` command), and ~normal~ for
other modes.
other modes. The default value aims to be general, minimal and sensible.

** meow-expand-exclude-mode-list

Expand Down
32 changes: 4 additions & 28 deletions meow-var.el
Original file line number Diff line number Diff line change
Expand Up @@ -239,35 +239,11 @@ This option will affect the color of position hint and fake region cursor."
:type 'boolean)

(defcustom meow-mode-state-list
'((authinfo-mode . normal)
(beancount-mode . normal)
(bibtex-mode . normal)
(cider-repl-mode . normal)
(cider-test-report-mode . normal)
(cider-browse-spec-view-mode . motion)
(cargo-process-mode . motion)
(conf-mode . normal)
(deadgrep-edit-mode . normal)
(deft-mode . normal)
(diff-mode . normal)
(ediff-mode . motion)
(gud-mode . normal)
(haskell-interactive-mode . normal)
(help-mode . normal)
(helpful-mode . normal)
(json-mode . normal)
(jupyter-repl-mode . normal)
(mix-mode . normal)
(occur-edit-mode . normal)
(pass-view-mode . normal)
'((conf-mode . normal)
(fundamental-mode . normal)
(help-mode . motion)
(prog-mode . normal)
(py-shell-mode . normal)
(restclient-mode . normal)
(telega-chat-mode . normal)
(term-mode . normal)
(text-mode . normal)
(vterm-mode . normal)
(Custom-mode . normal))
(text-mode . normal))
"A list of rules, each is (major-mode . init-state).
The init-state can be any state, including custom ones."
Expand Down

0 comments on commit 4a9297d

Please sign in to comment.