!ZmUSesoOjmVsKbzFbp:nixos.org

Nix Emacs

747 Members
All things Nix/Emacs! https://github.com/nix-community/emacs-overlay | For Doom Emacs: https://matrix.to/#/#doom-emacs:nixos.org170 Servers

Load older messages


SenderMessageTime
14 Jul 2024
@miangraham:matrix.org@miangraham:matrix.org left the room.04:48:59
@miangraham:matrix.org@miangraham:matrix.org joined the room.14:32:02
@tsomipa_ts:matrix.orgTsomipa_ts joined the room.18:58:16
15 Jul 2024
@sielicki:matrix.org@sielicki:matrix.org left the room.00:27:57
@offset---cyan:matrix.orgoffset---cyan set a profile picture.13:01:59
@adzuki:matrix.orgadzuki joined the room.21:18:34
16 Jul 2024
@bestlem:matrix.orgbestlem

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
@me:linj.techlinj 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:matrix.orgbestlemThe 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:matrix.orgbestlemOr 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
@philiptaron:matrix.orgPhilip 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@adham-omran:matrix.org joined the room.05:28:48
@qbit:tapenet.orgqbithow do I use emacs in wayland .. mode..? is that a thing?14:42:48
@qbit:tapenet.orgqbitis it just the pgtk variant?14:43:26
@qbit:tapenet.orgqbitthanks14:47:47
18 Jul 2024
@sofo:matrix.org@sofo:matrix.org changed their display name from Sofie to Sofie (AWAY).16:37:58
@pnotequalnp:matrix.org@pnotequalnp:matrix.org left the room.22:16:33
19 Jul 2024
@twitchy0:matrix.orgtwitchy0

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:matrix.orgtwitchy0possibly related issue: https://github.com/nix-community/emacs-overlay/issues/40914:49:24
20 Jul 2024
@twitchy0:matrix.orgtwitchy0oh nvm, the package in melpa is now using a new fork thats maintained17:06:35
@felixfahrbahn:matrix.org@felixfahrbahn:matrix.org left the room.17:51:27
21 Jul 2024
@mrprofessor:matrix.org@mrprofessor:matrix.org left the room.16:33:05
22 Jul 2024
@quantumrideragi:matrix.orgquantumrider joined the room.15:41:55
23 Jul 2024
@ezzobirbezziou:matrix.orgEzzobir Bezziou joined the room.08:21:02
24 Jul 2024
@dumac:matrix.org@dumac:matrix.org left the room.05:29:30
@aidengindin:matrix.org@aidengindin:matrix.org left the room.14:19:19
@vermium:zyner.org@vermium:zyner.org joined the room.19:40:15
25 Jul 2024
@sliedes:hacklab.fiSami Liedes joined the room.02:54:07
@bumperboat:matrix.org@bumperboat:matrix.org changed their display name from bumperboat (UTC+2) to bumperboat.12:47:26
26 Jul 2024
@vermium:zyner.org@vermium:zyner.org left the room.01:12:48

Show newer messages


Back to Room ListRoom Version: 6