14 Jul 2024 |
| @miangraham:matrix.org left the room. | 04:48:59 |
| @miangraham:matrix.org joined the room. | 14:32:02 |
| Tsomipa_ts joined the room. | 18:58:16 |
15 Jul 2024 |
| @sielicki:matrix.org left the room. | 00:27:57 |
| offset---cyan set a profile picture. | 13:01:59 |
| adzuki joined the room. | 21:18:34 |
16 Jul 2024 |
bestlem | I have a working emacs setup in nix using home-manager emacs. init.el etc are not in the nix setup but usually; emacs config. It loads packages and includes code from extraConfig option in default.el. The extra config includes code like
(setq envrc-direnv-executable "${pkgs.direnv}/bin/direnv")
Unfortunately this loads after my init.el
Has anyone got an example of getting code like that (using nix paths) to be loaded before or as part of init.el
| 12:37:39 |
linj | bestlem: you can do string interpolation in your init.el file. One way to do that is using pkgs.substituteAll and link the result to ~/.config/emacs/init.el | 13:08:39 |
bestlem | The trouble is that I might have many settings substituteAll is cumbersome - however generating a file in ~/.config and loading from init.el makes sense
| 13:15:05 |
bestlem | Or simpler default.el is generated on the site-lisp path so just (require 'default) - Emacs sees it as a package and so the second require does nothing.
| 13:27:53 |
Philip Taron (UTC-8) | Could I get an emacs committer to review and ideally merge https://github.com/NixOS/nixpkgs/pull/323868? It's in the emacs nix infrastructure, but pretty unrelated except for the linked test. | 14:37:20 |
17 Jul 2024 |
| @adham-omran:matrix.org joined the room. | 05:28:48 |
qbit | how do I use emacs in wayland .. mode..? is that a thing? | 14:42:48 |
qbit | is it just the pgtk variant? | 14:43:26 |
qbit | thanks | 14:47:47 |
18 Jul 2024 |
| @sofo:matrix.org changed their display name from Sofie to Sofie (AWAY). | 16:37:58 |
| @pnotequalnp:matrix.org left the room. | 22:16:33 |
19 Jul 2024 |
twitchy0 | Is there an issue with byte compilation and "internal" functions in a package? I started noticing a failure to call private functions. relatively minimal example:
{ pkgs, ... }:
pkgs.emacsWithPackagesFromPackageRequires {
packageElisp = ''
(require anki-editor)
'';
extraEmacsPackages = epkgs: [
epkgs.anki-editor
];
}
Error:
❯ nix build .#emacs-anki-editor && ./result/bin/emacs -Q --batch --eval "(progn (require 'anki-editor) (message \"%s\" (apropos-internal \"anki-editor--anki-connect-invoke\")) (anki-editor--anki-connect-invoke))"
(anki-editor--anki-connect-invoke)
Error: void-function (anki-editor--anki-connect-invoke)
mapbacktrace(#f(compiled-function (evald func args flags) #<bytecode 0x63863d603aef0e5>))
debug-early-backtrace()
debug-early(error (void-function anki-editor--anki-connect-invoke))
(anki-editor--anki-connect-invoke)
(progn (require 'anki-editor) (message "%s" (apropos-internal "anki-editor--anki-connect-invoke")) (anki-editor--anki-connect-invoke))
command-line-1(("--eval" "(progn (require 'anki-editor) (message \"%s\" (apropos-internal \"anki-editor--anki-connect-invoke\")) (anki-editor--anki-connect-invoke))"))
command-line()
normal-top-level()
Symbol’s function definition is void: anki-editor--anki-connect-invoke
| 14:48:56 |
twitchy0 | possibly related issue: https://github.com/nix-community/emacs-overlay/issues/409 | 14:49:24 |
20 Jul 2024 |
twitchy0 | oh nvm, the package in melpa is now using a new fork thats maintained | 17:06:35 |
| @felixfahrbahn:matrix.org left the room. | 17:51:27 |
21 Jul 2024 |
| @mrprofessor:matrix.org left the room. | 16:33:05 |
22 Jul 2024 |
| quantumrider joined the room. | 15:41:55 |
23 Jul 2024 |
| Ezzobir Bezziou joined the room. | 08:21:02 |
24 Jul 2024 |
| @dumac:matrix.org left the room. | 05:29:30 |
| @aidengindin:matrix.org left the room. | 14:19:19 |
| @vermium:zyner.org joined the room. | 19:40:15 |
25 Jul 2024 |
| Sami Liedes joined the room. | 02:54:07 |
| @bumperboat:matrix.org changed their display name from bumperboat (UTC+2) to bumperboat. | 12:47:26 |
26 Jul 2024 |
| @vermium:zyner.org left the room. | 01:12:48 |