github-actions[bot] 353c3bb1d4 flake.lock: Updating 'doom-emacs (hlissner/doom-emacs)' - f621ff80 -> e2a11d24
### Changes for doom-emacs

On branch: develop
Commits: f621ff8047...e2a11d24fd

- [c2b40148](c2b40148b8) fix and add keybinds in :lang scheme, with descriptions
- [4f50d9a7](4f50d9a750) Doom style: add blank lines, align keys, change macro expansion keys
- [65e9876c](65e9876c33) Bump :lang swift
- [f37fdea6](f37fdea637) rss: +org flag control installation of elfeed-org
- [acb03994](acb0399424) Reimplement +emacs-lisp--module-at-point
- [86f5dd84](86f5dd842e) Remove the -g background flag on Skim.app
- [ec3132bb](ec3132bbc4) lang/org: cleanup `+pretty` feature, mostly about `if` cookie
- [90c41564](90c41564c4) Bump :lang markdown
- [3c00ddce](3c00ddcebd) Fix smartparens pairing ' and ` in the minibuffer
- [c9b41205](c9b41205b2) Fix [hlissner/doom-emacs⁠#4925](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4925): defining lexical variables error in 28+
- [9d643b14](9d643b14ed) Revise comments
- [44a50191](44a501911b) cli/env: fix whitelist not shadowing blacklist
- [ccf6f0b5](ccf6f0b53d) Log unsafe eval forms in file/dir local variables
- [43623d7c](43623d7c5e) Fix [hlissner/doom-emacs⁠#4947](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4947): naive native-comp checks
- [259cf83e](259cf83ef1) Enhance FFAP lookup backend
- [f60f5760](f60f576048) Bump :core
- [2ef54eb7](2ef54eb782) Fix void-variable emacs-repository-branch in doom-info
- [1b132d2e](1b132d2e50) lang/org: add ob-elixir
- [437c33a8](437c33a8b2) Fix [hlissner/doom-emacs⁠#4949](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4949): evil-want-visual-char-semi-exclusive = nil
- [ecdf2b0b](ecdf2b0b08) Fix +lookup/file not opening URLs in browser
- [4c212b73](4c212b7321) Fixing windows pathway to use latest straight API
- [d6b0c019](d6b0c019d9) Add Info-mode to list of ligature-excluded modes.
- [89775f38](89775f38d5) app/calendar: remove org-gcal--notify hack
- [4afdd4f7](4afdd4f788) Bump :app
- [485381f6](485381f6d1) input/layout: major refactor
- [59a8856e](59a8856ecf) input/layout: remove redundancies
- [8a73a525](8a73a52534) Bump :ui
- [4c53ccac](4c53ccac5b) input/layout: initial azerty commit
- [a80f13f6](a80f13f626) Prevent extra window after +org/export-to-clipboard
- [09be988c](09be988c74) Add :input (layout +azerty) to docs
- [b903930f](b903930f2d) ui/doom-dashboard: only affect buffer-local fringe-indicator-alist
- [8bb54a95](8bb54a95f6) Add +org-present-hide-first-heading option
- [ab127b97](ab127b9766) :input layout: fix calls of +layout-bepo-rotate-keymaps
- [76523c40](76523c401f) Fix making doom-first-input-hook permanent-local
- [eddc7db2](eddc7db22c) README.org: Add info about vterm in NixOS
- [275f1a33](275f1a33f3) Prevent okular from stealing focus
- [21b8af1c](21b8af1ce1) Rewrite doom/reload-theme to reload active themes
- [a7df1f76](a7df1f76a4) Bump :lang rust
- [e68c83fd](e68c83fd4e) Remove unneeded entry in org-babel-tangle-lang-exts
- [dbd49922](dbd49922b8) :input layout: fix calls of +layout-bepo-rotate-keymaps pt.2 ([hlissner/doom-emacs⁠#4973](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4973))
- [0e9ae176](0e9ae176be) Set initial state in prodigy to normal
- [f8d36263](f8d362638e) Add lispy-mode hook to fennel-mode
- [72874919](7287491906) Update lispy readme
- [bfdd76f0](bfdd76f081) [docs] Add non-evil keybinding to zen
- [62312759](623127597f) Disable minibuffer error silencer hack in Emacs 27+
- [f4382b45](f4382b45fd) Remove redundant mode from so-long-minor-modes
- [29059bac](29059bacbe) Remove :shadow keyword from package!
- [ed4b1ef8](ed4b1ef887) Bump :email
- [464ce5ec](464ce5ec02) Bump :lang java
- [df10383a](df10383a26) Use symbol plists instead of internal variables
- [ff64a9d1](ff64a9d106) Add doom-run-hooks
- [a0c73c29](a0c73c2975) Prevent evil-collection-calc loading too early
- [45147aac](45147aace8) Refactor doom-debug-mode
- [5d7526a2](5d7526a224) doom-info: rename distro->system & add window-system
- [52fba3fa](52fba3fa60) Fix [hlissner/doom-emacs⁠#4977](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4977): inhibit xterm-set-window-title in GUI emacs
- [b6344138](b63441387b) lang/emacs-lisp: don't use risky-local-variable-p
- [d4dec356](d4dec35658) Improve unicode, emoji, & symbol font support
- [48322af0](48322af020) doom upgrade: delete straight if recipe changed
- [0a2ed4d3](0a2ed4d346) lang/emacs-lisp: Replace sym with var in +emacs-lisp-log-unsafe-local-variables-a
- [a98c2ece](a98c2ece63) Fix [hlissner/doom-emacs⁠#4992](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4992): set-fontset-font call when unavailable
- [9831642a](9831642a02) Fix [hlissner/doom-emacs⁠#4993](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4993): shorten long file names for caches
- [b12a0c02](b12a0c02b3) Bump :emacs undo
- [280bae03](280bae0331) Eagerly trigger doom-first-* hooks early in daemon sessions
- [3b9aee68](3b9aee6868) Strip /sudo:...@ from recent file paths
- [e2a11d24](e2a11d24fd) core: minor refactors and comment revisions
2021-05-07 11:32:17 +02:00
2021-01-23 17:15:48 +01:00
2021-01-23 17:15:48 +01:00
2019-10-23 13:25:43 +02:00
2021-03-12 10:53:18 +01:00
2021-01-23 17:50:22 +01:00

nix-doom-emacs

Status
Build on master Build Status on master
Build on develop Build Status on develop
Dependency updater Dependency Updater Status

Nix expression to install and configure doom-emacs.

The expression builds a doom-emacs distribution with dependencies pre-installed based on an existing ~/.doom.d directory.

It is not a fully fledged experience as some dependencies are not installed and some may not be fully compatible as the version available in NixOS or emacs-overlay may not be compatible with the doom-emacs requirements.

Getting started

Using home-manager:

{ pkgs, ... }:

let
  doom-emacs = pkgs.callPackage (builtins.fetchTarball {
    url = https://github.com/vlaci/nix-doom-emacs/archive/master.tar.gz;
  }) {
    doomPrivateDir = ./doom.d;  # Directory containing your config.el init.el
                                # and packages.el files
  };
in {
  home.packages = [ doom-emacs ];
  home.file.".emacs.d/init.el".text = ''
      (load "default.el")
  '';
}

./doom.d should contain the following three files: config.el, init.el and packages.el. If you don't already have an existing doom-emacs configuration, you can use the contents of test/doom.d as a template.

Using flake.nix:

{
  inputs = {
    home-manager.url = "github:rycee/home-manager";
    nix-doom-emacs.url = "github:vlaci/nix-doom-emacs";
  };

  outputs = {
    self,
    nixpkgs,
    home-manager,
    nix-doom-emacs,
    ...
  }: {
    nixosConfigurations.exampleHost = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        home-manager.nixosModules.home-manager
        {
          home-manager.users.exampleUser = { pkgs, ... }: {
            imports = [ nix-doom-emacs.hmModule ];
            programs.doom-emacs = {
              enable = true;
              doomPrivateDir = ./doom.d;
            };
          };
        }
      ];
    };
  };
}

Under the hood

This expression leverages nix-straight.el under the hood for installing dependencies. The restrictions of that package apply here too.

Usage

instead of running emacs.d/bin/doom, once you have update your config files (packages.el, init.el, config.el), rebuild doom-emacs with nix. If you are using home-manager, simply run home-manager switch

Troubleshooting

On macOS on a fresh install, you might run into the error Too many files open. running ulimit -S -n 2048 will only work for the duration of your shell and will fix the error

Installing emacs packages

In the initial packages.el instructions for how to install packages can be found. However some packages might require a particular software dependency to be installed. Trying to install those would give you an error of the type: Searching for program: No such file or directory, git (Missing git dependency) Here is how you would go installing magit-delta for example (which requires git).

Under the line: doomPrivateDir = ./doom.d; in your configuration, you would add the following:

  emacsPackagesOverlay = self: super: {
     magit-delta = super.magit-delta.overrideAttrs (esuper: {
       buildInputs = esuper.buildInputs ++ [ pkgs.git ];
     });
  };

To make the git dependency available. trying to rebuild doom-emacs with home-manager switch should work correctly now.

Using the daemon

To use the daemon, simply enable the emacs service (with NixOS, home-manager or nix-darwin) and use the doom emacs package. doom-emacs will need to be referenced at the top of your config file.

services.emacs = {
  enable = true;
  package = doom-emacs;  # use programs.emacs.package instead if using home-manager
}

to connect to the daemon you can now run emacsclient -c

Description
doom-emacs packaged for Nix [maintainers=@ckiee,@thiagokokada]
Readme MIT 3.3 MiB
Languages
Nix 64.3%
Emacs Lisp 35.7%