Communick News

88 readers
3 users here now

Communick is a professional, privacy-focused service provider who supports open source and the indieweb. We support back the fediverse and the developers by pledging 20% of our yearly profits to the main development teams.

All users from this instance are expected to follow the Code of Conduct.

At the moment, only the admins can create communities. We are still figuring out what type of content we would like to provide here, but the general guideline is that we want to build a home of good discussion about culture, sports, and anything that can inspire and elevate our spirits.

Communick also provides managed hosting for Lemmy instances if you want to run your own.

For further questions, try our support.

founded 2 years ago
ADMINS
26
 
 

We were invited to join this community – and finally use our one-year-old Lemmy account. Trufi Association is an international NGO that creates open source apps making sustainable mobility convenient for users, and open data for transport innovation, research, and better cities.

Find us on the Fediverse at @TrufiAssoc@urbanists.social

27
28
1
interview to Jan Gehl (www.abitare.it)
submitted 7 months ago by rglullis to c/humanscale
 
 

“Let us not forget that Homo sapiens is an animal that walks: it is a practice that is good for the climate and for the health of the body and the mind. If we encourage it, there are concrete benefits.” interview to Jan Gehl

29
30
31
32
33
4
Ohio only spends $4/capita on transit (www.policymattersohio.org)
submitted 7 months ago by rglullis to c/humanscale
34
35
36
 
 

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.

37
3
Scale Ruins Everything (coldwaters.substack.com)
submitted 8 months ago by rglullis to c/humanscale
38
39
40
41
42
43
44
3
Swimmable Cities (www.swimmablecities.org)
submitted 9 months ago by rglullis to c/humanscale
45
6
AI in Emacs (willschenk.com)
submitted 9 months ago by rglullis to c/emacs
46
47
 
 

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?

48
2
Guide to Raising Chicks (www.youtube.com)
submitted 9 months ago by rglullis to c/humanscale
49
50
 
 

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 ?

view more: ‹ prev next ›