!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

202 Members
Running Doom Emacs with Nix | You probably want https://github.com/nix-community/nix-doom-emacs43 Servers

Load older messages


SenderMessageTime
30 Jan 2023
@mon:tchncs.deribosomerockermaybe it's a combination of both using eglot and NDE22:31:45
31 Jan 2023
@alicecandyom:krendelhoff.spacealicecandyOM
In reply to @mon:tchncs.de
dont really know what to do to fix this anymore... any ideas?

At packages.el

(package! flycheck-haskell)

At config.el

(add-hook 'haskell-mode-hook #'flycheck-haskell-setup)
08:04:38
@alicecandyom:krendelhoff.spacealicecandyOMRedacted or Malformed Event08:04:46
@alicecandyom:krendelhoff.spacealicecandyOMimage.png
Download image.png
08:05:06
@alicecandyom:krendelhoff.spacealicecandyOM works with eglot setup 08:05:12
1 Feb 2023
@mon:tchncs.deribosomerockerhm, alright, thanks! i wonder if this is because of NDE, or because of Doom Emacs itself...12:57:16
2 Feb 2023
@sleroq:sleroq.linksleroq joined the room.23:24:52
3 Feb 2023
@JoelMcCracken:matrix.orgJoelMcCracken joined the room.02:46:54
@JoelMcCracken:matrix.orgJoelMcCracken how do you actually run the emacs built with nix-doom-emacs? just use e.g. emacs in ~/.nix-profile? 02:47:48
@ckie:ckie.devmei πŸŒ’&sure if you've configured it like that (you probably did if you're using the HM module)14:43:59
@ckie:ckie.devmei πŸŒ’&~/.nix-profile/bin should be in PATH14:44:15
@ckie:ckie.devmei πŸŒ’&you can also use services.emacs14:44:22
@JoelMcCracken:matrix.orgJoelMcCracken=) thank you17:08:10
4 Feb 2023
@JoelMcCracken:matrix.orgJoelMcCracken so right now i'm running https://github.com/joelmccracken/workstation/pull/10, building it on my local computer with nix build --verbose --no-link ~/workstation/#homeConfigurations.${WORKSTATION_NAME}.joel.activationPackage --show-trace --print-out-paths --rebuild, and activating with "$(nix path-info ~/workstation/#homeConfigurations.${WORKSTATION_NAME}.joel.activationPackage)"/activate. 01:51:14
@JoelMcCracken:matrix.orgJoelMcCrackenwhen I boot emacs, its (roughly) totally broken however01:51:45
@JoelMcCracken:matrix.orgJoelMcCrackenthis is on macos 01:52:06
@JoelMcCracken:matrix.orgJoelMcCracken

the Warnings buffer says:

Warning (initialization): An error occurred while loading β€˜/nix/store/4zw8l9f2ybgq5klckdl5dh9ygvcghq32-emacs-28.2/lib/emacs/28.2/native-lisp/28.2-78b7c535/warnings-28e75f4d-870b026e.eln’:

Doom hasn't been initialized yet; did you remember to run 'doom sync' in the shell?: /nix/store/9prmp4wm3y282kdjbmdmksmija0p38m6-straight-emacs-env/etc/@/init.28.elc

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the β€˜--debug-init’ option to view a complete error backtrace. Disable showing Disable logging
01:53:03
@JoelMcCracken:matrix.orgJoelMcCrackenany thoughts or advice would be very appreciated01:53:14
@JoelMcCracken:matrix.orgJoelMcCrackenalso, does anyone happen to have an example of nix-doom-emacs which is using the standalone home manager setup as a flake on macos?03:06:01
@JoelMcCracken:matrix.orgJoelMcCrackenugh, i believe I've figured out my problem03:53:43
@JoelMcCracken:matrix.orgJoelMcCrackennvm 03:53:49
@JoelMcCracken:matrix.orgJoelMcCrackenfor anyone who happened to come across my message here or elsewhere, the issue was that I had content from an already extant doom-emacs install in ~/.emacs.d, and that seemed to be interfering with the way nix-doom-emacs is configured; 19:44:08
@JoelMcCracken:matrix.orgJoelMcCracken hmm, I rely fairly heavily on SPC *, seems broken 22:06:57
5 Feb 2023
@alicecandyom:krendelhoff.spacealicecandyOM
In reply to @alicecandyom:krendelhoff.space

here is workaround I did to fix it:

(use-package! consult
  :config
  (defun consult--ripgrep-builder (&rest args) (apply (consult--ripgrep-make-builder) args)))

fix
11:33:53
@JoelMcCracken:matrix.orgJoelMcCracken Been tracking various things down, I almost wonder if I should add some of these notes to the readme or something? the ripgrep/ SPC * problem seemed to be because nix-doom-emacs doesn't import any environment variables (and hence path) into the emacs exec path; fixing that fixed one of the problems I saw. There is till an issue with the vertical completion package trying to execute a funciton that doesn't exist, i'm wondering if there is a version mismatch somehow 19:41:28
6 Feb 2023
@akaihola:matrix.orgakaihola

Ha! Adding po-mode from MELPA was as simple as

{ config, pkgs, ... }:

let
  doom-emacs = pkgs.callPackage (builtins.fetchTarball {
    url = https://github.com/nix-community/nix-doom-emacs/archive/master.tar.gz;
  }) {
    doomPrivateDir = ./doom.d;
    emacsPackagesOverlay = self: super: {
      po-mode = pkgs.emacsPackages.po-mode;
    };
  };
in {
  home.packages = with pkgs; [
    doom-emacs
  ];
}
20:23:09
@akaihola:matrix.orgakaihola *

Ha! Adding po-mode from MELPA was as simple as

{ config, pkgs, ... }:

let
  doom-emacs = pkgs.callPackage (builtins.fetchTarball {
    url = https://github.com/nix-community/nix-doom-emacs/archive/master.tar.gz;
  }) {
    doomPrivateDir = ./doom.d;
    emacsPackagesOverlay = self: super: {
      po-mode = pkgs.emacsPackages.po-mode;
    };
  };
in {
  home.packages = with pkgs; [
    doom-emacs
  ];
}

...but alas, it doesn't work. I get Invalid function: po-with-temp-buffer when opening a .po file.

20:24:32
7 Feb 2023
@faezs:matrix.orgFaez Shakil joined the room.09:20:13
@tbutt:matrix.orgmajorgreysStarting from scratch here with nixos and wondering if I should be using home-manager? my main use for this nixos system is for development and really just need it to have my doom.d.18:32:59
@JoelMcCracken:matrix.orgJoelMcCrackendo you hvae much prior experience with nix ?23:06:01

Show newer messages


Back to Room ListRoom Version: 9