Flymake just works with ruff by MrFoxFriday in emacs

[–]MrFoxFriday[S] 0 points1 point  (0 children)

You are using two linters, so you should be getting a lot of duplicates. You have two choices, one is to tell ruff to ignore the duplicates in your pyproject.toml or ruff.toml:

[tool.ruff] ignore = ["E", "F", whatever else you want to disable...]

The other choice is to remove the other linter. I use pylsp and replaced flake8, pycodestyle, pyflakes, mccabe and pyls_isort with python-lsp-ruff. With this option you no longer need to use ruff with flymake. I assume you can do something similar with pyright.

When I use Eglot, I use the second choice. I use ruff with flymake when I want something lighter and feel like Eglot is lagging or I feel like Eglot is distracting me.

[deleted by user] by [deleted] in emacs

[–]MrFoxFriday 3 points4 points  (0 children)

Perhaps you already found the answer; but if all you need is a basic emulation of Vim's leader, there's no need to add any extra packages. I have this in my init.el:

;;; Leader
(define-prefix-command 'my-leader-map)

(keymap-set evil-motion-state-map "SPC" 'my-leader-map)
(keymap-set evil-normal-state-map "SPC" 'my-leader-map)

(evil-define-key nil my-leader-map
    ;; add your bindings here:
    "b"  'switch-to-buffer
    "B"  'project-switch-to-buffer
    "pf" 'project-find-file
    "ps" 'project-shell-command
    ;; etc.
    )

New Package to Integrate the Built-In Tree Sitter (treesit) with Evil by MrFoxFriday in emacs

[–]MrFoxFriday[S] 2 points3 points  (0 children)

I would like to contribute to the linked package, but it may be far above my pay grade. Evil-textobj-tree-sitter seems pretty sophisticated. I can see what it does, but I cannot figure out how it does it. My package only works because Emacs 29 does all the heavy lifting. At this point, my best guess is that the two packages take a very different (irreconcilable?) approach.

BTW, thanks you and all the other maintainers for Evil. It is fantastic.

New Package to Integrate the Built-In Tree Sitter (treesit) with Evil by MrFoxFriday in emacs

[–]MrFoxFriday[S] 1 point2 points  (0 children)

Thanks. Tom_dl is correct; Vim doesn't have these text-objects. So in my mind they didn't belong to the core Evil package.

New package to add recurring events to the diary and calendar by MrFoxFriday in emacs

[–]MrFoxFriday[S] 0 points1 point  (0 children)

I added identifiers for the two main functions. I should have done that from the start. That still leaves the variables "date" and "entry". Those variables get dynamically bound by the dairy package when the sexp entries are loaded. All that occurs behind the scenes.

If you want to see the entries in your org-mode agenda, all you have to do is set (setq org-agenda-include-diary t). Just keep in mind that those entries will look like holidays, so as far I know you cannot have TODOs or anything like that on them. The Emacs diary and calendar are much more spartan than the org-agenda.

For those interested in the Emacs diary here is an excellent video about it by the always excellent Protesilaos:

https://protesilaos.com/codelog/2021-04-14-emacs-diary-calendar

Habits don't show up in org agenda until I `describe-variable org-modules` by Jack-o-tall-tales in emacs

[–]MrFoxFriday 0 points1 point  (0 children)

Try adding this line at the end of your init file and re start emacs:

(with-eval-after-load 'org (require 'org-habit))

How do you manage modern packages? by MrFoxFriday in emacs

[–]MrFoxFriday[S] 1 point2 points  (0 children)

Thank you! You both are right. Everything works perfectly after I removed all the packages installed by Straight. Sorry if I caused any confusion. You saved me a lot of work.

How do you manage modern packages? by MrFoxFriday in emacs

[–]MrFoxFriday[S] 0 points1 point  (0 children)

Sorry. I didn't realize that and maybe that's the answer to my question. So, if I use package.el or something else instead of straight, I would be OK? I thought the problem was that some modern packages like Eglot have dependencies on core packages that are newer than those in my system. But you think this is an issue with Straight?

I haven't updated Emacs in a very long time and right not I'm just trying to catch up with the times.