### Changes for doom-emacs On branch: develop Commits:6d2c6b44fa...005a71e467
- [ff5407f9](ff5407f91f
) Add note for fcitx5 usage - [d05d1e7e](d05d1e7e93
) Bump ddskk - [0d5ed1e2](0d5ed1e257
) ophints: Add hooks for lispyville - [513e05e8](513e05e856
) notmuch: put org-mime behind +org flag - [116fb4fc](116fb4fc64
) [:lang racket] Fix typos - [b66a0520](b66a0520b4
) [:lang racket] Mention Arch packages - [fe9f8e78](fe9f8e785f
) Fix +vterm-toggle not changing directory to project root - [582759e4](582759e43b
) Refactor +vterm/toggle and +vterm/here - [6aa29e82](6aa29e82ae
) Fix [hlissner/doom-emacs#4577](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4577): WS not at BOL is deleted to tab columns - [aa97fd55](aa97fd5528
) fix typo in how to set custom elfeed.org - [b523d531](b523d5314d
) change from list to ' form - [3c418238](3c41823824
) Fix wrong column being used and resulting bugs - [c84bc953](c84bc953d9
) Simplify (% current-column tab-width) code - [8a40e83a](8a40e83ab5
) unicode-chars-list-chars -> insert-char - [f3b71b04](f3b71b0495
) fix regex in lsp-file-watch-ignored-directories in elixir module - [ff3c9777](ff3c9777e7
) Bump :tools debugger lsp - [528657a4](528657a426
) bin/org-capture: fix hanging - [755d4c7b](755d4c7b15
) Add popup rule for *envrc* error buffers - [9e5ba5fd](9e5ba5fd6c
) Don't suppress user-error errors - [fb89327f](fb89327ff2
) Revert to straight's original bytecomp behavior - [dee20c75](dee20c7585
) Remove define-obsolete-*-alias fix - [44a05892](44a0589281
) Fix labeler action config - [5c46a5e6](5c46a5e680
) ui/treemacs: restore old h/l behavior - [8e56aa87](8e56aa8706
) Add lsp modeline - [7ddfb627](7ddfb6271d
) Add repl modeline - [c224e2e7](c224e2e771
) Move to global-mode-string - [b9e0ee29](b9e0ee2954
) Revert 5c46a5e68 & fix treemacs-evil load order - [f3687454](f368745406
) Fix eval on modeline - [141938ef](141938ef94
) editor/fold: fix load-order dependency on evil - [59aabaea](59aabaead3
) :ui modeline: Fix missing arg to function - [62c231ef](62c231efe6
) Bump rainbow-delimiters - [69beabe2](69beabe287
) Fix [hlissner/doom-emacs#5060](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/5060): don't hash relative backup file paths - [2466f835](2466f835bc
) Fix labeler workflow - [b80b338b](b80b338b3c
) doom--print: return message on success - [eaa32572](eaa32572b9
) lang/rust: fix void-variable flycheck-checkers error - [3b0f2379](3b0f23792d
) Distinguish C-m from RET - [5bed0a6d](5bed0a6d16
) Fix [hlissner/doom-emacs#5057](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/5057): don't read editorconfig files in archives - [fa8f73d9](fa8f73d9ed
) Revert b80b338b3 - [05866ce3](05866ce30f
) ui/modeline: don't show encoding unless nondefault - [059a70b7](059a70b74b
) Enable hl-todo-mode in yaml-mode - [e2077c82](e2077c823a
) tools/lsp: minor refactor - [de589e21](de589e21a2
) org-tree-slide-skip-outline-level = 0 - [bd94ef8f](bd94ef8f84
) Optimize reading org-agenda buffers in the bg - [06063696](060636966f
) Document :depth in add-hook! docstring - [7c273ad1](7c273ad173
) Remove hard dependency on sp-point-in-* predicates - [1840ae8a](1840ae8a18
) Backport VC-aware bug-reference-mode from 28.x - [b771425f](b771425f45
) [:lang rust] Expand `Prerequisites` - [e05dd265](e05dd2651f
) [:completion ivy] Call `pacman` in the normal way - [04b5dee6](04b5dee615
) [rust] Correct references to "elgot" - [b237de56](b237de5619
) Fix <C-m> shadowing keypad return - [1e9870e1](1e9870e13a
) Refactor bin/doom - [6fdaaf3a](6fdaaf3ae6
) Revert 3b0f23792 "Distinguish C-m from RET" - [0196875d](0196875d9c
) Remove redundant projectile-ignored-projects entries - [d141f39e](d141f39ee7
) tools/lsp: remove unneeded lsp-ui-*-enable checks - [69bd3da1](69bd3da195
) Don't enable lsp-ui-mode in lsp--auto-configure - [f884a5d1](f884a5d169
) Bump :lang cc - [f3c3459e](f3c3459ecd
) Update suggested clangd flags in lang/cc docs - [ef7113d6](ef7113d6c4
) Fix [hlissner/doom-emacs#5071](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/5071): don't always emit 128 exit code - [01b3e1d8](01b3e1d8d8
) Noting the lsp-peek handlers as :async - [6e77afba](6e77afba11
) :tools pass move autoload.el to autoload/pass.el - [6dc6d11b](6dc6d11b83
) :tools pass fix path in autoload/pass.el header - [5ddf8b9b](5ddf8b9b51
) featuregate ivy dependent autoloads for irc, pass - [fe9d45bc](fe9d45bcf5
) Add/Fix doom/{discourse,issue-tracker,report-bug} - [e3bcd04d](e3bcd04d82
) Bump :lang scheme - [4abb7a83](4abb7a83d5
) :app irc restore +irc/tracking-next-buffer - [9ae4945d](9ae4945d97
) Enable docsets in nodejs-repl-mode - [37df4b4f](37df4b4ff4
) define-localleader-key's featurep -> featurep! - [2a2969f3](2a2969f3e0
) org-roam-verbose = t - [d0dacce0](d0dacce085
) tools/upload: correct variable name - [a4d2e873](a4d2e873ab
) Bump :ui doom - [cd6d33c4](cd6d33c4a3
) Bump :ui doom - [f015a5ec](f015a5ec7a
) Bump :ui doom - [90d1a59c](90d1a59cce
) Add vi-tilde-fringe documentation - [31ca03c7](31ca03c7a0
) editor/format: never prompt for formatter on init - [5aea22ec](5aea22ec31
) Prevent custom from writing font settings to custom.el - [6e296f3d](6e296f3da2
) Reload dashboard when loading theme - [e297ca4b](e297ca4bfe
) Bump :core - [5abba364](5abba3642b
) Bump :ui - [6824b927](6824b9270d
) tools/magit: larger fringe in magit-mode - [c5256666](c525666688
) Bump :tools - [65b55fd7](65b55fd7d1
) Bump :term - [54067455](54067455e7
) Fix [hlissner/doom-emacs#5053](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/5053): unwanted inline ligature composition - [a160451f](a160451fd8
) Add qt module documentation - [4b5cf7d4](4b5cf7d46f
) bin/doom: polish output - [13f316e6](13f316e645
) Fix packages evading native-compilation - [a8e57438](a8e57438dc
) Refactor doom-{path,file,dir,glob} - [3ba364ae](3ba364ae10
) Minor refactoring across the board - [739fb58a](739fb58a16
) Don't trigger labeler workflow on issues - [5da0408e](5da0408e4f
) Add :T for treemacs state keybinds in map! - [3a0bf17f](3a0bf17f2f
) lsp-ui-doc-enable = nil - [e5b52e2a](e5b52e2a50
) Remove "fix" for projectile + $HOME git repos - [4b90f28e](4b90f28e08
) Default eshell-term-name to eterm-color - [6321b3a2](6321b3a249
) straight: clone --single-branch by default - [eb9b7b0b](eb9b7b0bbc
) tools/pdf: build epdfinfo when pdf-tools is built - [1eb3da9f](1eb3da9fcb
) doc: adding treemacs readme ([hlissner/doom-emacs#4797](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4797)) - [3a1aaacb](3a1aaacbad
) Add ranger documentation to dired README ([hlissner/doom-emacs#5085](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/5085)) - [8841011a](8841011a95
) Return buffer on +vterm/{here,toggle} commands - [3d19fab5](3d19fab59c
) Don't build vterm-module in noninteractive sessions - [ab1000c8](ab1000c8d0
) Fix [hlissner/doom-emacs#5088](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/5088): failure to install straight.el - [2d8342ca](2d8342ca5f
) docs: bump minimum git version: 2.23 -> 2.28 [hlissner/doom-emacs#5088](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/5088) - [592116ce](592116cece
) cli/doctor: add git and git 2.28 check - [7ec92219](7ec9221957
) docs/getting_started: update ubuntu install instructions - [df3c221c](df3c221c73
) cli: don't repeat "Executing..." line on restart - [8424e0a7](8424e0a780
) config/literate: simplify tangle process - [daa50557](daa50557a4
) tools/pdf: leave it to user to build epdfinfo - [7b5baf31](7b5baf319b
) Fix [hlissner/doom-emacs#5093](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/5093): git version doctor check on macOS - [f604ce6d](f604ce6d01
) Minor refactors & reformatting - [364e74a9](364e74a96b
) Bump :emacs vc :tools magit - [b0741336](b0741336d1
) Throw error if git < 2.28 - [4563f13e](4563f13ef9
) Reduce verbosity of first-time install - [108f9877](108f9877fe
) Revise issue forms - [79df2f87](79df2f875a
) Fix bug_report & feature_request issue forms - [6c2ff379](6c2ff3791a
) Reformat issue forms - [18a149b3](18a149b3e3
) Add :not counsel-org-goto to ivy-prescient-sort-commands - [3b18153e](3b18153ea7
) Advice lispyville-end-of-defun to go past defuns - [657b326e](657b326e92
) lang/javascript: redesign module around rjsx-mode - [9bd0be17](9bd0be17e3
) Enable solaire-mode in popups, transient, which-key - [1f918ba6](1f918ba638
) Remove braces from issue form placeholders - [fa643513](fa643513cf
) lang/org: add orgit-forge - [d99a102a](d99a102a6b
) rainbow-delimiters-max-face-count = 4 - [68bee504](68bee5043c
) Fix 'typescript-tide is not a valid syntax checker' error - [6e7a19a2](6e7a19a2f4
) Enable formatter if LSP formatter is available - [a7d5d97b](a7d5d97b34
) Fix [hlissner/doom-emacs#4899](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4899): wrong-type-arg arrayp error on org-brain init - [c9653ba8](c9653ba8ae
) Fix [hlissner/doom-emacs#5104](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/5104): void-function +format-lsp-enable-on-save-maybe-h - [c97df46f](c97df46f5b
) Fix [hlissner/doom-emacs#5105](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/5105): void-variable org-brain-polymode-map - [005a71e4](005a71e467
) Fix [hlissner/doom-emacs#5104](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/5104) (again): void-function +format-lsp-enable-on-save-maybe-h
nix-doom-emacs
Status | |
---|---|
Build on master |
|
Build on develop |
|
Dependency updater |
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