emacs: Create a shell script instead of an alias 'e'
This commit is contained in:
parent
fd479fbd1a
commit
6d49c9127d
1 changed files with 6 additions and 3 deletions
|
|
@ -1,11 +1,14 @@
|
|||
{ inputs, config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
let
|
||||
emacsclient-wrapper = pkgs.writeShellScriptBin "e" ''
|
||||
exec ${pkgs.emacs}/bin/emacsclient --reuse-frame --no-wait "$@"
|
||||
'';
|
||||
in {
|
||||
nixpkgs.overlays = [ inputs.emacs.overlay ];
|
||||
|
||||
home = {
|
||||
sessionPath = [ "$HOME/.emacs.d/bin" ];
|
||||
shellAliases = { e = "emacsclient -c $@"; };
|
||||
packages = [ emacsclient-wrapper ];
|
||||
};
|
||||
|
||||
programs.emacs = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue