13 Jun 2024 |
edgar.vincent | In reply to @zororg:matrix.org
Then you can use emacs-git or emacs-pgtk or so...
You can list all available package from it by
$ nix search emacs-overlay# (press Enter or TAB)
That's very handy indeed, thank you! | 14:34:59 |
johnhamelink | Hi there, I have almost entirely moved my config over to nix with emacs-overlay. I'm using emacsWithPackagesFromUsePackage to pull down all my use-package deps, but for some reason alphapapa's activities isn't being recognised. I do see it in nixpkgs (emacsPackages.activities ), and it's available from ELPA. Why would it not be found by emacsWithPackagesFromUsePackage ? | 16:44:02 |
15 Jun 2024 |
| Marmar22 changed their profile picture. | 03:23:46 |
17 Jun 2024 |
| tsuneko-sama removed their profile picture. | 01:11:54 |
| tsuneko-sama changed their display name from takimototsuneko to tsuneko-sama. | 01:12:11 |
| Marmar22 changed their display name from marmar22 to Marmar22. | 02:57:23 |
| ZM Berber joined the room. | 17:07:17 |
ZM Berber | hey! it doesn't seem like the emacs overlay and parsePackagesFromUsePackage take care of custom packages (directly from git, outside elpa/melpa) declared via straight, right? it would be really cool if this parser could handle that as well. i am almost thinking about doing the reverse: generate a straight declaration from the nix declaration for a custom package. | 17:15:48 |
bandithedoge | In reply to @zmberber:matrix.org hey! it doesn't seem like the emacs overlay and parsePackagesFromUsePackage take care of custom packages (directly from git, outside elpa/melpa) declared via straight, right? it would be really cool if this parser could handle that as well. i am almost thinking about doing the reverse: generate a straight declaration from the nix declaration for a custom package. no, it only parses your use-package/leaf declarations and matches them to existing packages in nixpkgs | 17:16:57 |
ZM Berber | yeah... | 17:17:26 |
bandithedoge | https://github.com/nix-community/nix-straight.el does it for straight declarations and powers nix-doom-emacs but it's been broken for quite some time | 17:19:06 |
ZM Berber | In reply to @bandithedoge:matrix.org https://github.com/nix-community/nix-straight.el does it for straight declarations and powers nix-doom-emacs but it's been broken for quite some time bummer... so what do you recommend? i would just stick to straight inside emacs for everything, aside from vterm and others, possibly, for which i do it in nix for building | 17:47:01 |
bandithedoge | In reply to @zmberber:matrix.org bummer... so what do you recommend? i would just stick to straight inside emacs for everything, aside from vterm and others, possibly, for which i do it in nix for building i stick to use-package and write overrides with fetchgit for anything that isn't in nixpkgs | 17:56:00 |
bandithedoge | but just using straight/elpaca/whatever outside of nix is perfectly fine too | 17:57:02 |
ZM Berber | do you mean you stick to use-package with straight within emacs? or do you use emacsWithPackagesFromUsePackage ? | 17:57:02 |
bandithedoge | In reply to @zmberber:matrix.org do you mean you stick to use-package with straight within emacs? or do you use emacsWithPackagesFromUsePackage ? emacsWithPackagesFromUsePackage with overrides | 17:57:24 |
bandithedoge | like so https://github.com/bandithedoge/dotfiles/blob/master/home%2Feditors%2Femacs.nix#L34-L40 | 17:58:33 |
ZM Berber | what happens if there is something in use-package which isn't in nixpkgs? for instance, something custom made? does emacsWithPackagesFromUsePackage just ignore it? | 18:16:25 |
bandithedoge | In reply to @zmberber:matrix.org what happens if there is something in use-package which isn't in nixpkgs? for instance, something custom made? does emacsWithPackagesFromUsePackage just ignore it? yes, though if you don't specify an override then emacs might try to download the package on startup | 18:21:34 |
ZM Berber | In reply to @bandithedoge:matrix.org yes, though if you don't specify an override then emacs might try to download the package on startup yes, that is what i expected. | 18:22:12 |
bandithedoge | it'll print a warning when rebuilding | 18:22:21 |
ZM Berber | but then i would have a kind of good setup: i would just have everything with straight-use-package, so that things can work on all machines, and then i would have everything with emacsWithPackagesFromUsePackage as well as overrides for all things that are not in elpa | 18:23:36 |
bandithedoge | sounds like a plan, though i'm not sure if that function will parse straight-use-package correctly | 18:30:50 |
bandithedoge | i guess you're better off setting :straight t as default in use-package | 18:31:22 |
ZM Berber | In reply to @bandithedoge:matrix.org sounds like a plan, though i'm not sure if that function will parse straight-use-package correctly it does. you can use straight and there is an option for emacs to always use straight-use-package when there is use-package . | 18:32:50 |
ZM Berber | In reply to @bandithedoge:matrix.org i guess you're better off setting :straight t as default in use-package yes, that is precisely what i would be doing | 18:33:07 |
ZM Berber | ...and what i meant by my previous message | 18:33:19 |
bandithedoge | right | 18:33:29 |
ZM Berber | or actually, i would set straight-use-package-by-default | 18:35:02 |
bandithedoge | exactly | 18:35:16 |