2024-08-27 23:48:31 +02:00
|
|
|
{ depot, pkgs, ... }:
|
|
|
|
|
2024-08-28 13:53:58 +02:00
|
|
|
let
|
|
|
|
em = depot.tools.eaglemode;
|
|
|
|
icon = em.mkTGA "emacs" "${pkgs.emacs}/share/icons/hicolor/128x128/apps/emacs.png";
|
|
|
|
in
|
|
|
|
em.mkCommand {
|
2024-08-27 23:48:31 +02:00
|
|
|
name = "Emacsclient";
|
|
|
|
hotkey = "Ctrl+E";
|
2024-08-28 13:53:58 +02:00
|
|
|
icon = "${icon}";
|
2024-08-27 23:48:31 +02:00
|
|
|
|
|
|
|
description = ''
|
|
|
|
Open target in Emacsclient.
|
|
|
|
|
|
|
|
Emacs server must be running already for this to have any effect.
|
|
|
|
'';
|
|
|
|
|
|
|
|
code = ''
|
|
|
|
ErrorIfNotSingleTarget();
|
|
|
|
|
|
|
|
my @tgt=GetTgt();
|
|
|
|
my $dir=$tgt[0];
|
|
|
|
|
|
|
|
ExecOrError('${pkgs.emacs}/bin/emacsclient', '-n', $dir);
|
|
|
|
'';
|
|
|
|
}
|