From 984b9d9d81a080d66be3afa77b0dbe49b1db4439 Mon Sep 17 00:00:00 2001 From: Mon Aaraj Date: Tue, 13 Sep 2022 00:17:37 +0300 Subject: [PATCH] add faq for imperative doom emacs --- docs/faq.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/faq.md b/docs/faq.md index 09385bd..421f045 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -1,6 +1,10 @@ # FAQ This is more meant as a "Fully Anticipated Questions" than a "Frequently Asked Questions", as they're anticipated as common pitfalls to using NDE. +## I am new to Nix. Is this the only way to use Doom Emacs with Nix/NixOS? + +Nope! Doom Emacs is still perfectly usable imperatively. In fact, the very author of Doom Emacs uses NixOS and install Doom Emacs with an ["imperative" setup](https://github.com/hlissner/dotfiles/blob/master/modules/editors/emacs.nix). You could just follow the instructions on the [Doom Emacs GitHub repository](https://github.com/doomemacs/doomemacs) to get a working setup. + ## OK, I put your snippets into my NixOS configuration, and I put my Doom Emacs configuration as well. How do I `doom sync`? To update your Doom Emacs config, you simply run `nixos-rebuild switch` (or `home-manager switch` if you use Home-Manager standalone). Nix-Doom-Emacs will do everything else for you. @@ -139,7 +143,7 @@ Running `ulimit -S -n 2048` will fix it for the duration of your shell session. This is very simple. you just use the `emacsPackage` attribute after applying `emacs-overlay` to your Nixpkgs. something like: ```nix -programs.doom-emacs = { +programs.doom-emacs = { enable = true; doomPrivateDir = ./doom; emacsPackage = pkgs.emacsPgtkNativeComp; # I used the native comp pgtk as an example