branch: externals/jinx commit 9c71f2c896c3d004019aa45cff3a54e09f2d5aee Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
jinx-mode: Remove needless argument --- README.org | 2 +- jinx.el | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.org b/README.org index 11654d9613..eb52d69af2 100644 --- a/README.org +++ b/README.org @@ -134,7 +134,7 @@ more suggestions fit on the screen and enable annotations. #+begin_src emacs-lisp (add-to-list 'vertico-multiform-categories '(jinx grid (vertico-grid-annotate . 20) (vertico-count . 4))) -(vertico-multiform-mode 1) +(vertico-multiform-mode) #+end_src * Navigating between misspellings diff --git a/jinx.el b/jinx.el index 5561f3996a..5e487915e6 100644 --- a/jinx.el +++ b/jinx.el @@ -642,7 +642,7 @@ If CHECK is non-nil, always check first." "Guard BODY during correction loop." `(cl-letf (((symbol-function #'jinx--timer-handler) #'ignore) ;; Inhibit (repeat-mode nil)) ;; No repeating of jinx-next and jinx-previous - (unless jinx-mode (jinx-mode 1)) + (unless jinx-mode (jinx-mode)) ,@body)) (defun jinx--invisible-open-temporarily () @@ -978,7 +978,7 @@ read via `completing-read-multiple'. If the prefix argument GLOBAL is non-nil, the languages are changed globally for all buffers. See also the variable `jinx-languages'." (interactive (list (jinx--read-languages) current-prefix-arg)) - (unless jinx-mode (jinx-mode 1)) + (unless jinx-mode (jinx-mode)) (cond (global (kill-local-variable 'jinx-languages) @@ -1173,7 +1173,7 @@ symbols or elements of the form (not modes)." ('nil 0) ((pred symbolp) (and (derived-mode-p p) t)) (`(not . ,m) (and (seq-some #'derived-mode-p m) 0))))))) - (jinx-mode 1))) + (jinx-mode))) (provide 'jinx) ;;; jinx.el ends here