profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/ideasman42/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Campbell Barton ideasman42 Blender Foundation Australia https://gitlab.com/ideasman42

dfelinto/blender 316

clone of git://git.blender.org/blender.git + my branches

ideasman42/isect_segments-bentley_ottmann 58

BentleyOttmann sweep-line implementation (for finding all intersections in a set of line segments)

ideasman42/curve-fit-nd 47

High level utility library that takes a line and fits a bezier curve to it, in any number of dimensions - usable for freehand drawing and tracing raster images.

ideasman42/emacs-for-vimmers 47

Introduction Emacs config, for developers used to Vim.

ideasman42/blender_patch_templates 12

This repo is to host simple patches on Blender3D's source. A kind of template for features which may involve changes to many areas.

fsiddi/blender-addons 8

A place for Blender addons and useful scripts.

carter2422/blender-ui 5

Unofficial Blender fork to explore user interface improvements

ideasman42/block-array-cow 5

Block de-duplicating in-memory array storage.

ideasman42/emacs-stackexchange-snippets 5

Useful Emacs utilites from emacs.stackexchange.com

ideasman42/cargo-oos 2

Cargo out-of-source utility, for quickly doing out of source builds without manual hassles.

issue commentleotaku/flycheck-aspell

How to config flycheck-aspell?

No. All your suggested code snippet can't do the job.

That surprises me. But good that you found something that works for you.

So you want to also have predictive word suggestions from your dictionaries using something like company?

Yes.

Unfortunately, I won’t be able to help you with that.

hongyi-zhao

comment created time in an hour

issue commentleotaku/flycheck-aspell

How to config flycheck-aspell?

You probably just need to ensure that the Flyspell package has been loaded, i.e. run (require 'flyspell).

No. All your suggested code snippet can't do the job. I found the following working code snippet from here:

(use-package flyspell :demand t
   :config
   (use-package 
     flyspell-correct-helm) 
   (defun flyspellCompletion() 
     (flyspell-mode 1) 
     (set (make-local-variable 'company-backends) 
          (copy-tree company-backends)) 
     (add-to-list 'company-backends 'company-ispell)) 
   (defun flyspell-most-modes() 
     (add-hook 'text-mode-hook 'flyspellCompletion) 
     (add-hook 'prog-mode-hook 'flyspellCompletion)
     (dolist (hook '(change-log-mode-hook log-edit-mode-hook)) 
       (add-hook hook (lambda () 
                        (flyspell-mode -1))))) 
   (flyspell-most-modes) 
   :bind (:map flyspell-mode-map
               ("C-." . flyspell-correct-wrapper)))

image

So you want to also have predictive word suggestions from your dictionaries using something like company?

Yes.

hongyi-zhao

comment created time in an hour

issue commentleotaku/flycheck-aspell

How to config flycheck-aspell?

And see the screenshot below when I click on the middle button:

You probably just need to ensure that the Flyspell package has been loaded, i.e. run (require 'flyspell).

I want to have a drop-down menu, just as we have for command completion with company, which is triggered by...

So you want to also have predictive word suggestions from your dictionaries using something like company? Unfortunately, I do not know of a way to enable something like this reliably.

hongyi-zhao

comment created time in 2 hours

issue commentleotaku/flycheck-aspell

How to config flycheck-aspell?

Could you be more specific with what you dislike about it?

I want to have a drop-down menu which is triggered by the threshold of a specific minimum input character number, say, 3, and then incrementally narrowed down as the input sequence increases.

If you want the menu that is triggered by middle-clicking with your mouse,

Yes.

(define-key global-map [mouse-2] #'flyspell-correct-word)

I tried with the following code:

(add-hook 'after-init-hook #'global-flycheck-mode)
(define-key global-map [mouse-2] #'flyspell-correct-word)

And see the screenshot below:

image

hongyi-zhao

comment created time in 2 hours

issue commentleotaku/flycheck-aspell

How to config flycheck-aspell?

I personally think selecting from the suggestion list is pretty convenient as-is, selecting the fix with just one keystroke. Could you be more specific with what you dislike about it?

I have seen the method of re-binding it with the mouse button.

Sorry, but I don't quite know what you mean here. If you want the menu that is triggered by middle-clicking with your mouse, you can try the following. Note that while this functionality is provided by Flyspell, you do not have to have flyspell-mode enabled for it to work.

(define-key global-map [mouse-2] #'flyspell-correct-word)
hongyi-zhao

comment created time in 4 hours

issue commentleotaku/flycheck-aspell

How to config flycheck-aspell?

See mine:

image

Is there a more convenient way to select from the list? I have seen the method of re-binding it with the mouse button. But TBF, I can't think of the specific command for this trick. I'm rather a newbie to Emacs.

hongyi-zhao

comment created time in 5 hours

issue commentleotaku/flycheck-aspell

How to config flycheck-aspell?

But I still don't have a convenient way to select an appropriate entry from the candidate correction list.

As I've said, this is handled by the Emacs Ispell mode. I think the default binding for fixing a misspelled word is M-$ which is bound to ispell-word, but you can of course also add your own keybinding.

With the recommended configurations that you are using, the fixes offered by the ispell-word popup will always match the suggestions in the list of corrections shown by flycheck-aspell.

hongyi-zhao

comment created time in 5 hours

issue commentleotaku/flycheck-aspell

How to config flycheck-aspell?

are you sure you have enabled flycheck-mode in your buffer?

You're right, and now I add the following line into my init file:

(add-hook 'after-init-hook #'global-flycheck-mode)

image

But I still don't have a convenient way to select an appropriate entry from the candidate correction list.

hongyi-zhao

comment created time in 5 hours

issue commentleotaku/flycheck-aspell

How to config flycheck-aspell?

The last code snippet of the instructions here should be the following (You omit a ) at the end.):

Thank you, should be fixed now.

But Emacs doesn't hint me the wrong word and suggest changes, as shown below.

This might be a basic question, but are you sure you have enabled flycheck-mode in your buffer? Try M-x flycheck-mode and see if the suggestions appear.

hongyi-zhao

comment created time in 6 hours

push eventleotaku/flycheck-aspell

Leo Gaskin

commit sha 3abe1a6184fefea3e427141131fba40afae3d356

Fix syntax in code block in README-FLYCHECK.md Co-authored-by: Hongyi Zhao <hongyi.zhao@gmail.com>

view details

push time in 6 hours

issue commentleotaku/flycheck-aspell

How to config flycheck-aspell?

Thank you very much. The last code snippet of the instructions here should be the following (You omit a ) at the end.):

(advice-add #'ispell-pdict-save :after #'flycheck-maybe-recheck)
(defun flycheck-maybe-recheck (_)
  (when (bound-and-true-p flycheck-mode)
   (flycheck-buffer)))

I've tried the following settings based on the above instructions:

(use-package flycheck-aspell)
;; Ensure `flycheck-aspell' is available
(require 'flycheck-aspell)
;; If you want to check TeX/LaTeX/ConTeXt buffers
(add-to-list 'flycheck-checkers 'tex-aspell-dynamic)
;; If you want to check Markdown/GFM buffers
(add-to-list 'flycheck-checkers 'markdown-aspell-dynamic)
;; If you want to check HTML buffers
(add-to-list 'flycheck-checkers 'html-aspell-dynamic)
;; If you want to check XML/SGML buffers
(add-to-list 'flycheck-checkers 'xml-aspell-dynamic)
;; If you want to check Nroff/Troff/Groff buffers
(add-to-list 'flycheck-checkers 'nroff-aspell-dynamic)
;; If you want to check Texinfo buffers
(add-to-list 'flycheck-checkers 'texinfo-aspell-dynamic)
;; If you want to check comments and strings for C-like languages
(add-to-list 'flycheck-checkers 'c-aspell-dynamic)
;; If you want to check message buffers
(add-to-list 'flycheck-checkers 'mail-aspell-dynamic)

(setq ispell-dictionary "en")
(setq ispell-program-name "aspell")
(setq ispell-silently-savep t)

(advice-add #'ispell-pdict-save :after #'flycheck-maybe-recheck)
(defun flycheck-maybe-recheck (_)
  (when (bound-and-true-p flycheck-mode)
   (flycheck-buffer)))

But Emacs doesn't hint me the wrong word and suggest changes, as shown below:

image

hongyi-zhao

comment created time in 6 hours

push eventleotaku/flycheck-aspell

Leo Gaskin

commit sha 2fd52431fee76d6b87f2a13564f67ea63bcf5820

Add C comments and strings spell checker for flycheck-aspell As is promised in the main README.md

view details

push time in 6 hours

push eventleotaku/flycheck-aspell

Leo Gaskin

commit sha f32017fd56589f67e4813fae1f69042f9456abbe

Further clarify things in README-FLYCHECK.md

view details

push time in 7 hours

issue commentleotaku/flycheck-aspell

How to config flycheck-aspell?

But how to activate it and let it fix the misspelled words automatically?

I'm not quite sure if you have the correct idea about what flycheck-aspell is supposed to do for you. It will only highlight the misspelled words for you, fixing them is handled by Emacs' Ispell mode.

But how to activate it

Unfortunately, the setup with Flycheck is somewhat unintuitive, as Flycheck only supports checkers that are specific to modes and not really "global" checkers that are supposed to work for all modes. If you are not already using Flycheck for other things, I would recommend that you switch to Flymake, which is built-in and works much better with my spell checking mode. The setup instructions for that are here

If you do want to use Flycheck, which I totally understand why you would, I have just updated the setup instructions here to be more detailed. In case anything is confusing, just tell me, and I'll be happy to help.

hongyi-zhao

comment created time in 7 hours

push eventleotaku/flycheck-aspell

Leo Gaskin

commit sha 99bd50161daba5d592bfea5f0f05ef7e962186aa

Improve README-FLYCHECK.md

view details

push time in 7 hours

issue openedleotaku/flycheck-aspell

How to config flycheck-aspell?

On Ubuntu 20.04, I've aspell installed:

$ aspell --version
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.8)

And I installed flycheck-aspell:

(use-package flycheck-aspell)

But how to activate it and let it fix the misspelled words automatically?

Regards, HY

created time in 7 hours

startedideasman42/nerd-dictation

started time in 20 hours

push eventleotaku/flycheck-aspell

Leo Gaskin

commit sha 8e1528dc53e2a90105bad11f9af5c8e3d8ae81d5

Improve README.md

view details

push time in 4 days

startedideasman42/nerd-dictation

started time in 5 days

startedideasman42/nerd-dictation

started time in 5 days

startedideasman42/emacs-for-vimmers

started time in 7 days

pull request commentideasman42/nerd-dictation

Propose an alternative method to simulate input, using pynput

Thanks for your comment. Adding the comment type: ignore doesn't help to pass the test. This is explicitly ignored. But what is bad, is that this method suffers the same default as xdotool. This was masked in my tests because I had done setxkbmap before. After a reboot, I was nuked.

papoteur-mga

comment created time in 10 days

fork alexJhao/isect_segments-bentley_ottmann

BentleyOttmann sweep-line implementation (for finding all intersections in a set of line segments)

fork in 11 days

PR opened ideasman42/nerd-dictation

Propose an alternative method to simulate input, using pynput

A new option --simulate-input-method is added. This replaces xdotool and needs pynput as new module. See #4

+49 -20

0 comment

1 changed file

pr created time in 12 days

issue commentideasman42/nerd-dictation

Influence of keyboard layout (xdotool limitation)

Hello, I had no results with autokey. It doesn't seem to be usable as a module. I tried also keyboard, but this one needs root access, which is no way. Finally, I have something working with pynput, which is thus a new dependency.

papoteur-mga

comment created time in 12 days

startedideasman42/nerd-dictation

started time in 13 days

issue closedleotaku/flycheck-aspell

How does this package compare to flyspell?

Stock Emacs already has a package called "flyspell-mode". It is rather old and sometimes behaves weirdly, but I think it would still be nice to have a small introduction at the README, how flycheck-aspell is better.

Could that be added?

closed time in 13 days

lockywolf

issue commentleotaku/flycheck-aspell

How does this package compare to flyspell?

I have just rewritten a large part of the README, incorporating your suggestion of adding a comparison to flyspell-mode. Feel free to leave any further suggestions here or open a new issue or discussion.

lockywolf

comment created time in 13 days

push eventleotaku/flycheck-aspell

Leo Gaskin

commit sha dcb9dad39782c4e278b8dfc9e553b10aaa0629bc

Update feature checklist

view details

Leo Gaskin

commit sha 636cac2b92d5eedb15648573dac4f366c3824eae

Fix XML filter name

view details

Leo Gaskin

commit sha a1e7387b2a8843b817e0cbf2c110dcdfb52c376d

Simplify nroff filter name

view details

Leo Gaskin

commit sha 8c45988a12e7c149b17d7edb84e6dfc33bb7b288

Add Nroff aliases to feature checklist

view details

push time in 13 days

push eventleotaku/flycheck-aspell

Leo Gaskin

commit sha bf30b0f6de00e748aec46842d0e6825bcb9662ec

Completely rewrite README.md

view details

push time in 13 days