preview
When I first joined Lemmy and created this instance, there was no emacs community with consistent activity. I created the community mostly to see if I could help in the efforts during the Reddit migration and because it’s one of the subreddits that I was still visiting regularly.
I was also interested in having some communities where I could have full control to run some experiments: most notably the ability to have all submissions and contents mirrored from Reddit via alien.top.
These experiments and the effort to keep it fresh with content did make this most active emacs community (even without the mirroring bots) but to be honest today it feels out of place. Two years later, the landscape of instances are more of less consolidated and I’m no longer interested in running a community that does not belong to a topic-specific instance.
I strongly believe that there should be a cleaner separation between instances for groups and instances for people, and it would be kind of hypocritical to keep nurturing this community here when there is an instance focused on programming and software tools.
So, effective today, I am removing this community from fediverser.network as the recommended alternative and I’m going to list !emacs@programming.dev as the best place for emacs content. I don’t know if there is a standard procedure established for these types, so I’m going to keep the community open for the next 90 days and keep this post pinned until then. On June 1st, I will close down this community altogether.
When I first joined Lemmy and created this instance, there was no emacs community with consistent activity. I created the community mostly to see if I could help in the efforts during the Reddit migration and because it’s one of the subreddits that I was still visiting regularly.
I was also interested in having some communities where I could have full control to run some experiments: most notably the ability to have all submissions and contents mirrored from Reddit via alien.top.
These experiments and the effort to keep it fresh with content did make this most active emacs community (even without the mirroring bots) but to be honest today it feels out of place. Two years later, the landscape of instances are more of less consolidated and I’m no longer interested in running a community that does not belong to a topic-specific instance.
I strongly believe that there should be a cleaner separation between instances for groups and instances for people, and it would be kind of hypocritical to keep nurturing this community here when there is an instance focused on programming and software tools.
So, effective today, I am removing this community from fediverser.network as the recommended alternative and I’m going to list !emacs@programming.dev as the best place for emacs content. I don’t know if there is a standard procedure established for these types, so I’m going to keep the community open for the next 90 days and keep this post pinned until then. On June 1st, I will close down this community altogether.
preview
cross-posted from: lemmy.sdf.org/post/25098327
I’ve been using gptel for a couple of days and it is absolutely bonkers. It is Magit-level of thought out. However I enjoyed relying less on the transient menu, and rather focus on writing my own wrapper functions via gptel-request.
Honestly I’ve been kind of an AI skeptic until very recently, and gptel in addition to this article were what pushed me over.
cross-posted from: lemmy.sdf.org/post/25098327
I’ve been using gptel for a couple of days and it is absolutely bonkers. It is Magit-level of thought out. However I enjoyed relying less on the transient menu, and rather focus on writing my own wrapper functions via gptel-request.
Honestly I’ve been kind of an AI skeptic until very recently, and gptel in addition to this article were what pushed me over.
preview
I am using counsel with projectile mainly for two use cases:
counsel-projectile-ag for project-wide grep
counsel-projectile-find-file to get a list of file names by typing some characters.
I usually have them bound to C-C C-sand C-C C-f, which used to work well with any other major modes.
Recently, I switched to using tree-sitter and set it up to use python-ts-mode. I also started using lsp-mode. Since then, whenever I open any python file, C-c C-s and C-c C-f are bound to the functions from python-mode. I’ve tried adding
(unbind-key "C-c C-s" python-ts-mode-map)
(unbind-key "C-c C-f" python-ts-mode-map)
to python-ts :config on use-package, and similar to python-mode, but I am still getting
python-ts-mode-map), which is an interactive native-compiled Lisp
function in ‘python.el’.
It is bound to C-c C-s.
(python-shell-send-string STRING &optional PROCESS MSG)
Send STRING to inferior Python PROCESS.
When optional argument MSG is non-nil, forces display of a
user-friendly message if there’s no process running; defaults to
t when called interactively.
[back]
What would be the correct way to set the configuration to get this always bound to the counsel-projectile commands whenever I open a python file?
Caveat: I am using NixOS home-manager to manage my emacs installation, which means that I am not manipulating my .emacs directly.
The relevant sections of my nix file.
usePackage = {
python-ts-mode = {
enable = true;
mode = [ ''("\\.py\\'" . python-ts-mode)'' ];
hook = [
"hs-minor-mode"
"(python-ts-mode . python-isort-on-save-mode)"
];
bind = {
"C-c C-s" = "counsel-projectile-ag";
"C-c C-f" = "counsel-projectile-find-file";
};
config = ''
(unbind-key "C-c C-s" python-ts-mode-map)
(unbind-key "C-c C-f" python-ts-mode-map)
'';
};
python-mode = {
enable = true;
bind = {
"C-c C-s" = "counsel-projectile-ag";
"C-c C-f" = "counsel-projectile-find-file";
};
config = ''
(unbind-key "C-c C-s" python-mode-map)
(unbind-key "C-c C-f" python-mode-map)
'';
};
lsp-mode = {
enable = true;
command = [ "lsp" ];
hook = [
"((python-ts-mode java-mode vue-mode javascript-ts-mode typescript-ts-mode) . lsp-deferred)"
];
bind = {
"C-c r r" = "lsp-rename";
"C-c r f" = "lsp-format-buffer";
"C-c r g" = "lsp-format-region";
"C-c r a" = "lsp-execute-code-action";
"C-c f r" = "lsp-find-references";
"C-c C-s" = "counsel-projectile-ag";
"C-c C-f" = "counsel-projectile-find-file";
};
};
counsel = {
enable = true;
bind = {
"C-x C-d" = "counsel-dired-jump";
"C-x C-r" = "counsel-recentf";
"C-x C-y" = "counsel-yank-pop";
};
diminish = [ "counsel-mode" ];
};
counsel-projectile = {
enable = true;
bind = {
"C-c C-s" = "counsel-projectile-ag";
"C-c C-f" = "counsel-projectile-find-file";
};
};
};
Any help appreciated.
I am using counsel with projectile mainly for two use cases:
counsel-projectile-ag for project-wide grep
counsel-projectile-find-file to get a list of file names by typing some characters.
I usually have them bound to C-C C-sand C-C C-f, which used to work well with any other major modes.
Recently, I switched to using tree-sitter and set it up to use python-ts-mode. I also started using lsp-mode. Since then, whenever I open any python file, C-c C-s and C-c C-f are bound to the functions from python-mode. I’ve tried adding
(unbind-key "C-c C-s" python-ts-mode-map)
(unbind-key "C-c C-f" python-ts-mode-map)
to python-ts :config on use-package, and similar to python-mode, but I am still getting
python-ts-mode-map), which is an interactive native-compiled Lisp
function in ‘python.el’.
It is bound to C-c C-s.
(python-shell-send-string STRING &optional PROCESS MSG)
Send STRING to inferior Python PROCESS.
When optional argument MSG is non-nil, forces display of a
user-friendly message if there’s no process running; defaults to
t when called interactively.
[back]
What would be the correct way to set the configuration to get this always bound to the counsel-projectile commands whenever I open a python file?
Caveat: I am using NixOS home-manager to manage my emacs installation, which means that I am not manipulating my .emacs directly.
The relevant sections of my nix file.
usePackage = {
python-ts-mode = {
enable = true;
mode = [ ''("\\.py\\'" . python-ts-mode)'' ];
hook = [
"hs-minor-mode"
"(python-ts-mode . python-isort-on-save-mode)"
];
bind = {
"C-c C-s" = "counsel-projectile-ag";
"C-c C-f" = "counsel-projectile-find-file";
};
config = ''
(unbind-key "C-c C-s" python-ts-mode-map)
(unbind-key "C-c C-f" python-ts-mode-map)
'';
};
python-mode = {
enable = true;
bind = {
"C-c C-s" = "counsel-projectile-ag";
"C-c C-f" = "counsel-projectile-find-file";
};
config = ''
(unbind-key "C-c C-s" python-mode-map)
(unbind-key "C-c C-f" python-mode-map)
'';
};
lsp-mode = {
enable = true;
command = [ "lsp" ];
hook = [
"((python-ts-mode java-mode vue-mode javascript-ts-mode typescript-ts-mode) . lsp-deferred)"
];
bind = {
"C-c r r" = "lsp-rename";
"C-c r f" = "lsp-format-buffer";
"C-c r g" = "lsp-format-region";
"C-c r a" = "lsp-execute-code-action";
"C-c f r" = "lsp-find-references";
"C-c C-s" = "counsel-projectile-ag";
"C-c C-f" = "counsel-projectile-find-file";
};
};
counsel = {
enable = true;
bind = {
"C-x C-d" = "counsel-dired-jump";
"C-x C-r" = "counsel-recentf";
"C-x C-y" = "counsel-yank-pop";
};
diminish = [ "counsel-mode" ];
};
counsel-projectile = {
enable = true;
bind = {
"C-c C-s" = "counsel-projectile-ag";
"C-c C-f" = "counsel-projectile-find-file";
};
};
};
Any help appreciated.
preview
Is ellama the recommended package to use for code assistance on emacs? @emacs
I’m getting some useful results when asking questions to Mistral (via Brave Browser) when working with programming languages that I am learning. What is the current recommended approach to get it working with #emacs?
Is ellama the recommended package to use for code assistance on emacs? @emacs
I’m getting some useful results when asking questions to Mistral (via Brave Browser) when working with programming languages that I am learning. What is the current recommended approach to get it working with #emacs?
preview
So many cool posts about #emacs recently but I am not sure the microblog UI is the best for them. Ideally, I wish we could group AP actors to announce any activity by a certain hashtag, so they could become posts in something like #lemmy instead.
In the meantime, how do I get more of this emacs conversation on @emacs ?
So many cool posts about #emacs recently but I am not sure the microblog UI is the best for them. Ideally, I wish we could group AP actors to announce any activity by a certain hashtag, so they could become posts in something like #lemmy instead.
In the meantime, how do I get more of this emacs conversation on @emacs ?
preview
Its been a few weeks, but I didn’t see any post about it here. In case you aren’t following the emacs-devel list, Eli Zaretskii, the current MS-Windows maintainer, is asking for anyone to take over day to day issue management and supporting the port as he’s wanting to step down from the role.
Its been a few weeks, but I didn’t see any post about it here. In case you aren’t following the emacs-devel list, Eli Zaretskii, the current MS-Windows maintainer, is asking for anyone to take over day to day issue management and supporting the port as he’s wanting to step down from the role.
preview
Take a look at the python code above. Because the word filter is a builtin function it gets highlighted differently than the rest of the code. The problem is, none of the occurrences of the word here relate to the builtin function and it semantically should not be any different from any other decorator or callable.
I honestly think that this is a bug with the syntax highlighter (as it should be easy to discern between a built-in function call and a method from another class, but if I could just disable syntax highlighting in python-mode for the specific keyword, it should be fine? Is that possible to do in elisp?
Take a look at the python code above. Because the word filter is a builtin function it gets highlighted differently than the rest of the code. The problem is, none of the occurrences of the word here relate to the builtin function and it semantically should not be any different from any other decorator or callable.
I honestly think that this is a bug with the syntax highlighter (as it should be easy to discern between a built-in function call and a method from another class, but if I could just disable syntax highlighting in python-mode for the specific keyword, it should be fine? Is that possible to do in elisp?
preview
cross-posted from: lemmy.world/post/14012479
To all evil-mode users, how do you work with vterm?
As a long time Vimmer, I have recently started using Emacs out of sheer curiosity. I chose Doom Emacs as it has evil-mode enabled by default, and do not want to dive down the rabbit hole of configuring the editor from scratch (at least, not yet!).
After installing and enabling libvterm in Emacs, I am having a frustrating experience. I configured ZSH shell to use vi-mode keybindings which interferes with evil-mode whenever I press Esc or C-[.
After having searched a little, I came across a workaround to disable evil-mode when in vterm. But it is still not a smooth experience. For instance, when switching between buffers (C-w C-w).
I would like to know how others in the community tackled this problem. Is there a better solution to this problem? Or have you made peace with the aforementioned workaround? Or have you stopped using vterm entirely?
cross-posted from: lemmy.world/post/14012479
To all evil-mode users, how do you work with vterm?
As a long time Vimmer, I have recently started using Emacs out of sheer curiosity. I chose Doom Emacs as it has evil-mode enabled by default, and do not want to dive down the rabbit hole of configuring the editor from scratch (at least, not yet!).
After installing and enabling libvterm in Emacs, I am having a frustrating experience. I configured ZSH shell to use vi-mode keybindings which interferes with evil-mode whenever I press Esc or C-[.
After having searched a little, I came across a workaround to disable evil-mode when in vterm. But it is still not a smooth experience. For instance, when switching between buffers (C-w C-w).
I would like to know how others in the community tackled this problem. Is there a better solution to this problem? Or have you made peace with the aforementioned workaround? Or have you stopped using vterm entirely?
preview
I’m trying to get out of my Python/Javascript comfort zone and start contributing to other Fediverse projects that are built in other languages. If you are already using Emacs for your dev work in any of the above languages, can you share perhaps your configuration or at least recommended packages for beginners, which prioritize sensible defaults and can be used with minimal amount of fussing?
I’m trying to get out of my Python/Javascript comfort zone and start contributing to other Fediverse projects that are built in other languages. If you are already using Emacs for your dev work in any of the above languages, can you share perhaps your configuration or at least recommended packages for beginners, which prioritize sensible defaults and can be used with minimal amount of fussing?
preview
cross-posted from: lemmy.sdf.org/post/10280862
protesilaos.com/emacs/ef-themes-pictures
Theme in picture is ef-summer. I love these so much. They’re a breath of fresh air among the other techy-cyber-hacker themes, yknow?
cross-posted from: lemmy.sdf.org/post/10280862
protesilaos.com/emacs/ef-themes-pictures
Theme in picture is ef-summer. I love these so much. They’re a breath of fresh air among the other techy-cyber-hacker themes, yknow?
preview
The other ones seem less active than this one.
The other ones seem less active than this one.
preview
It’s gotten too much. I think 1100 is a bit too much custom ELisp code. I also got to a point where my customization started interfering with Doom’s core modules, yielded weird errors from time to time. I found out that Doom’s defaults are actually beautiful and idk guys I feel refreshed, I’m ready now to get shit done, I can now actually work™️. I have offloaded the annoyances to Henrik.
2024 year of bankruptcy let’s go
It’s gotten too much. I think 1100 is a bit too much custom ELisp code. I also got to a point where my customization started interfering with Doom’s core modules, yielded weird errors from time to time. I found out that Doom’s defaults are actually beautiful and idk guys I feel refreshed, I’m ready now to get shit done, I can now actually work™️. I have offloaded the annoyances to Henrik.
2024 year of bankruptcy let’s go